예제 #1
0
 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);
 }
예제 #2
0
 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);
 }