public void TestValidateWithValidValue() { CQZ cqz = new CQZ("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; CQZ cqz = new CQZ("hump"); Assert.IsFalse(cqz.Validate(out err, out modStr)); Assert.AreEqual("\tValue must be a number.", err); Assert.IsNull(modStr); }