+void FileConfigTestCase::CreateSubgroupAndEntries()
+{
+ wxFileConfig fc;
+ fc.Write(_T("sub/sub_first"), _T("sub_one"));
+ fc.Write(_T("first"), _T("one"));
+
+ CPPUNIT_ASSERT( Dump(fc) == _T("first=one\n")
+ _T("[sub]\n")
+ _T("sub_first=sub_one\n"));
+}
+
+void FileConfigTestCase::CreateEntriesAndSubgroup()
+{
+ wxFileConfig fc;
+ fc.Write(_T("first"), _T("one"));
+ fc.Write(_T("second"), _T("two"));
+ fc.Write(_T("sub/sub_first"), _T("sub_one"));
+
+ CPPUNIT_ASSERT( Dump(fc) == _T("first=one\n")
+ _T("second=two\n")
+ _T("[sub]\n")
+ _T("sub_first=sub_one\n"));
+}