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