Esempio n. 1
0
 public void WriteInteger()
 {
     using (IniFile ini = new IniFile(fileName)) {
         Assert.AreNotEqual(42, ini.ReadInteger("Section1",
                                                "doesnotexist", 0));
         ini.WriteInteger("Section1", "doesnotexist", 42);
         Assert.AreEqual(42, ini.ReadInteger("Section1",
                                             "doesnotexist", 0));
     }
 }