Esempio n. 1
0
 public void getValueAsStringTest()
 {
     OptionBool target = new OptionBool("test", false);
     Assert.AreEqual("false", target.getValueAsString());
     target.Value = true;
     Assert.AreEqual("true", target.getValueAsString());
 }
Esempio n. 2
0
 public void setValueFromStringTest()
 {
     OptionBool target = new OptionBool("test", false);
     target.setValueFromString("true");
     Assert.AreEqual(true, target.Value);
     target.setValueFromString("0");
     Assert.AreEqual(false, target.Value);
     target.setValueFromString("TruE");
     Assert.AreEqual(true, target.Value);
 }