Beispiel #1
0
 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);
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 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);
 }