public void TestValidate1mm() { Band_Rx band = new Band_Rx("1mm", aEnums); string error = string.Empty; string modStr = string.Empty; Assert.IsTrue(band.Validate(out error, out modStr)); Assert.IsNull(error); Assert.IsNull(modStr); }
public void TestValidateBadValue() { Band_Rx band = new Band_Rx("23mm", aEnums); string error = string.Empty; string modStr = string.Empty; Assert.IsFalse(band.Validate(out error, out modStr)); Assert.AreEqual("\tThis QSO Field is of type enumeration. The value '23mm' was not found in enumeration.", error); Assert.IsNull(modStr); }