public void TestValidateY() { Force_Init bf = new Force_Init("Y"); string err = string.Empty; string modStr = string.Empty; Assert.IsTrue(bf.Validate(out err, out modStr)); Assert.IsNull(err); Assert.IsNull(modStr); }
public void TestValidateInvalidValue() { Force_Init bf = new Force_Init("F"); string err = string.Empty; string modStr = string.Empty; Assert.IsFalse(bf.Validate(out err, out modStr)); Assert.AreEqual("\tBoolean field must have value 'Y' or 'N'.", err); Assert.IsNull(modStr); }