public void TestValidateWithValidValue() { My_CQ_Zone cqz = new My_CQ_Zone("10"); string err = string.Empty; string modStr = string.Empty; Assert.IsTrue(cqz.Validate(out err, out modStr)); Assert.IsNull(err); Assert.IsNull(modStr); }
public void TestValidateWithInvalidValue() { string err = string.Empty; string modStr = string.Empty; My_CQ_Zone cqz = new My_CQ_Zone("hump"); Assert.IsFalse(cqz.Validate(out err, out modStr)); Assert.AreEqual("\tValue must be a number.", err); Assert.IsNull(modStr); }