public void TestNameAccessor() { UserdefTime uds = new UserdefTime("124819", userdef1); string err = string.Empty; string modStr = string.Empty; Assert.IsTrue(uds.Validate(out err, out modStr)); Assert.AreEqual("QslTime", uds.Name); }
public void TestValidateInvalid() { UserdefTime uds = new UserdefTime("124875", userdef1); string err = string.Empty; string modStr = string.Empty; Assert.IsFalse(uds.Validate(out err, out modStr)); Assert.AreEqual("\tTime must be in HHMM or HHMMSS format.", err); Assert.IsNull(modStr); }
public void TestValidateValid() { UserdefTime uds = new UserdefTime("124819", userdef1); string err = string.Empty; string modStr = string.Empty; Assert.IsTrue(uds.Validate(out err, out modStr)); Assert.IsNull(err); Assert.IsNull(modStr); }