// register in the unnamed registry so that these tests are run by default
CPPUNIT_TEST_SUITE_REGISTRATION( GarbageTestCase );
-// also include in it's own registry so that these tests can be run alone
+// also include in its own registry so that these tests can be run alone
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( GarbageTestCase, "GarbageTestCase" );
delete htmlwin;
*/
// test wxXmlResource
- bool loaded = wxXmlResource::Get()->Load(fullname);
- wxXmlResource::Get()->Unload(fullname);
- if ( loaded )
- {
- CPPUNIT_FAIL
- (
- wxString::Format("Unexpectedly succeeded loading XRC from '%s'",
- fullname).ToStdString()
- );
- }
+ CPPUNIT_ASSERT( wxXmlResource::Get()->Load(fullname) == false );
}
void GarbageTestCase::DoLoadStream(wxInputStream& stream)