Пример #1
0
 public void LoadSetting_Int32()
 {
     var s = new TestConfigSettings();
     s.Init();
     Assert.IsTrue(s.LoadedWithoutErrors);
     Assert.AreEqual(1, s.TestInt32);
 }
Пример #2
0
 public void LoadSetting_StringArray()
 {
     var s = new TestConfigSettings();
     s.Init();
     Assert.IsTrue(s.LoadedWithoutErrors);
     Assert.AreEqual(3, s.TestStringArray.Count());
 }
Пример #3
0
 public void LoadSetting_String()
 {
     var s = new TestConfigSettings();
     s.Init();
     Assert.IsTrue(s.LoadedWithoutErrors);
     Assert.AreEqual("Value", s.TestString);
 }
Пример #4
0
 public static TestConfigSettings Instance()
 {
     if (instance == null)
     {
         lock (SyncRoot)
         {
             if (instance == null)
             {
                 instance = new TestConfigSettings();
             }
         }
     }
     return instance;
 }