Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }