public void TestValidateValidZone() { ITUZ zone = new ITUZ("19"); string err = string.Empty; string modStr = string.Empty; Assert.IsTrue(zone.Validate(out err, out modStr)); Assert.IsNull(err); Assert.IsNull(modStr); }
public void TestValidateInvalidZone() { ITUZ zone = new ITUZ("fb"); string err = string.Empty; string modStr = string.Empty; Assert.IsFalse(zone.Validate(out err, out modStr)); Assert.AreEqual("\tValue must be a number.", err); Assert.IsNull(modStr); }