+void FileConfigTestCase::AddToExistingRoot()
+{
+ static const wxChar *confInitial =
+ _T("[Group]\n")
+ _T("value1=foo\n");
+
+ wxStringInputStream sis(confInitial);
+ wxFileConfig fc(sis);
+
+ fc.Write(_T("/value1"), _T("bar"));
+ wxVERIFY_FILECONFIG(
+ _T("value1=bar\n")
+ _T("[Group]\n")
+ _T("value1=foo\n"),
+ fc
+ );
+}
+