]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/misc/garbage.cpp
support for file types in save panel
[wxWidgets.git] / tests / misc / garbage.cpp
index 1f81940ca2c0e3dcb4017da70f5e706ef447545f..c866ea61ef6177ece97ba0e876c93b8c98d335dd 100644 (file)
@@ -149,16 +149,7 @@ void GarbageTestCase::DoLoadFile(const wxString& fullname)
     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)