public void TestValidateValidDate() { Lotw_QslRDate date = new Lotw_QslRDate("19990615"); string err = string.Empty; string modStr = string.Empty; Assert.IsTrue(date.Validate(out err, out modStr)); Assert.IsNull(err); Assert.IsNull(modStr); }
public void TestValidateInvalidDate() { Lotw_QslRDate date = new Lotw_QslRDate("19250615"); string err = string.Empty; string modStr = string.Empty; Assert.IsFalse(date.Validate(out err, out modStr)); Assert.AreEqual("\tDate must be 19300101 or later.", err); Assert.IsNull(modStr); }