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); }
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); }
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); }