void CategoryTest::TestDestructor() { Category* c = new Category("mycategory"); c->AddWords(m_DefaultWords); delete c; c = new Category(); CPPUNIT_ASSERT(c->GetName() == DEF_CATEGORY_NAME); CPPUNIT_ASSERT(c->GetWordCount() == 0); delete c; }