#include "wx/ffile.h"
#include "wx/textfile.h"
+#ifdef __VISUALC__
+ #define unlink _unlink
+#endif
+
// ----------------------------------------------------------------------------
// test class
// ----------------------------------------------------------------------------
FILE *f = fopen(GetTestFileName(), "wb");
CPPUNIT_ASSERT( f );
- CPPUNIT_ASSERT( fwrite(contents, 1, len, f) >= 0 );
- CPPUNIT_ASSERT( fclose(f) == 0 );
+ CPPUNIT_ASSERT_EQUAL( len, fwrite(contents, 1, len, f) );
+ CPPUNIT_ASSERT_EQUAL( 0, fclose(f) );
}
void TextFileTestCase::ReadEmpty()