コード例 #1
0
 public void TestValidateValidCall()
 {
     Station_Callsign oCall = new Station_Callsign("VA3HJ");
     string err = string.Empty;
     string modStr = string.Empty;
     Assert.IsTrue(oCall.Validate(out err, out modStr));
     Assert.IsNull(err);
     Assert.IsNull(modStr);
 }
コード例 #2
0
 public void TestValidateCompoundCall()
 {
     Station_Callsign oCall = new Station_Callsign("VA3HJ/W8");
     string err = string.Empty;
     string modStr = string.Empty;
     Assert.IsTrue(oCall.Validate(out err, out modStr));
     Assert.AreEqual(null, err);
     Assert.IsNull(modStr);
 }
コード例 #3
0
 public void TestValidateInvalidCall()
 {
     Station_Callsign oCall = new Station_Callsign("VAHJ");
     string err = string.Empty;
     string modStr = string.Empty;
     Assert.IsFalse(oCall.Validate(out err, out modStr));
     Assert.AreEqual("\tCallsign 'VAHJ' is invalid.", err);
     Assert.IsNull(modStr);
 }