예제 #1
0
 public void getValueAsStringTest()
 {
     OptionInt target = new OptionInt("test", "int");
     target.Value = 0;
     Assert.AreEqual("0", target.getValueAsString());
     target.Value = 10;
     Assert.AreEqual("10", target.getValueAsString());
 }
예제 #2
0
 public void setValueFromStringTest()
 {
     OptionInt target = new OptionInt("test", 0, 0, 255, 1); // Jednobajtowe 0
     target.setValueFromString("10");
     Assert.AreEqual(10, target.Value);
 }