+void TextStreamTestCase::MiscTests()
+{
+ wxString filename = wxT("testdata.fc");
+ wxFileInputStream fsIn(filename);
+ if ( !fsIn.IsOk() )
+ {
+ return;
+ }
+
+ wxTextInputStream tis(fsIn);
+ CPPUNIT_ASSERT_EQUAL("# this is the test data file for wxFileConfig tests", tis.ReadLine());
+ CPPUNIT_ASSERT_EQUAL("value1=one", tis.ReadLine());
+ CPPUNIT_ASSERT_EQUAL("# a comment here", tis.ReadLine());
+ CPPUNIT_ASSERT_EQUAL("value2=two", tis.ReadLine());
+ CPPUNIT_ASSERT_EQUAL("value\\ with\\ spaces\\ inside\\ it=nothing special", tis.ReadLine());
+ CPPUNIT_ASSERT_EQUAL("path=$PATH", tis.ReadLine());
+}
+