Esempio n. 1
0
 public void TestDoubleConfig()
 {
     var builder = new Builder();
     builder.Config("doublevalue", 3.5D);
     Assert.True(builder.options["doublevalue"].Equals("3.5", StringComparison.InvariantCultureIgnoreCase));
 }
Esempio n. 2
0
 public void TestLongConfig()
 {
     var builder = new Builder();
     builder.Config("longvalue", 3L);
     Assert.True(builder.options["longvalue"].Equals("3", StringComparison.InvariantCultureIgnoreCase));
 }
Esempio n. 3
0
 public void TestBoolConfig()
 {
     var builder = new Builder();
     builder.Config("boolvalue", true);
     Assert.True(builder.options["boolvalue"].Equals("true", StringComparison.InvariantCultureIgnoreCase));
 }