public void TestInvalidManagerCall() { QsoInputData iData = new QsoInputData(); iData.Manager = "VAHJ"; string error = iData["Manager"]; Assert.AreEqual("Not a valid callsign", error); }
public void TestInvalidStartDate() { QsoInputData iData = new QsoInputData(); iData.StartDate = "19291231"; string error = iData["StartDate"]; Assert.AreEqual("\tDate must be 19300101 or later.", error); }
public void TestInvalidCallsign() { QsoInputData iData = new QsoInputData(); iData.Callsign = "VAHJ"; string error = iData["Callsign"]; Assert.AreEqual("Not a valid callsign", error); }
public void TestInvalidMode() { QsoInputData iData = new QsoInputData(); iData.Mode = "SQUIBB"; string error = iData["Mode"]; Assert.AreEqual(null, error); }
public void TestInvalidManagerModifiers() { QsoInputData iData = new QsoInputData(); iData.Manager = "VA3HJ/W4"; string error = iData["Manager"]; Assert.AreEqual("Manager callsign must not contain modifiers (e.g. VA3HJ, not XE1/VA3HJ)", error); }
public void TestValidStartTime() { QsoInputData iData = new QsoInputData(); iData.StartTime = "122539"; string error = iData["StartTime"]; Assert.IsNull(error); }
public void TestValidStartDate() { QsoInputData iData = new QsoInputData(); iData.StartDate = "20130615"; string error = iData["StartDate"]; Assert.IsNull(error); }
public void TestValidMode() { QsoInputData iData = new QsoInputData(); iData.Mode = "SSB"; string error = iData["Mode"]; Assert.IsNull(error); }
public void TestNullMode() { QsoInputData iData = new QsoInputData(); iData.Mode = null; string error = iData["Mode"]; Assert.AreEqual("Value is null.", error); }
public void TestValidFreqNoBand() { QsoInputData iData = new QsoInputData(); iData.Frequency = "21.203"; string error = iData["Frequency"]; Assert.IsNull(error); }
public void TestValidFreqInvalidBand() { QsoInputData iData = new QsoInputData(); iData.Band = "11m"; iData.Frequency = "28.453"; string error = iData["Frequency"]; Assert.AreEqual("Frequency is not within the selected band", error); }
public void TestValidFreqDifferentBand() { QsoInputData iData = new QsoInputData(); iData.Band = "10m"; iData.Frequency = "21.203"; string error = iData["Frequency"]; Assert.AreEqual("Frequency is not within the selected band", error); }
public void TestValidCallsign() { QsoInputData iData = new QsoInputData(); iData.Callsign = "VA3HJ"; string error = iData["Callsign"]; Assert.IsNull(error); }
public void TestValidBandNoFreq() { QsoInputData iData = new QsoInputData(); iData.Band = "10m"; string error = iData["Band"]; Assert.IsNull(error); }
public void TestValidBandInvalidFreq() { QsoInputData iData = new QsoInputData(); iData.Band = "10m"; iData.Frequency = "27.453"; string error = iData["Band"]; Assert.AreEqual("Frequency is not within an enumerated ham band and therefore cannot be validated against this Band setting", error); }
public void TestValidBandFreqDifferentBand() { QsoInputData iData = new QsoInputData(); iData.Band = "10m"; iData.Frequency = "21.203"; string error = iData["Band"]; Assert.AreEqual("Band does not contain the specified frequency", error); }
public void TestValidFreqValidBand() { QsoInputData iData = new QsoInputData(); iData.Band = "10m"; iData.Frequency = "28.453"; string error = iData["Frequency"]; Assert.IsNull(error); }
public void TestValidManager() { QsoInputData iData = new QsoInputData(); iData.Manager = "VA3HJ"; string error = iData["Manager"]; Assert.IsNull(error); }
public void TestInvalidStartTimeBadTime() { QsoInputData iData = new QsoInputData(); iData.StartTime = "252555"; string error = iData["StartTime"]; Assert.AreEqual("\tInvalid time.", error); }
public void TestInvalidStartTimeLength() { QsoInputData iData = new QsoInputData(); iData.StartTime = "12253"; string error = iData["StartTime"]; Assert.AreEqual("\tTime must be in HHMM or HHMMSS format.", error); }