public void getValueAsStringTest() { OptionBool target = new OptionBool("test", false); Assert.AreEqual("false", target.getValueAsString()); target.Value = true; Assert.AreEqual("true", target.getValueAsString()); }
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); }