public void TestValidateValidMultipleCredits() { CreditList credit = new CreditList("IOTA,DXCC_BAND,DXCC_MODE", aEnums); string err = string.Empty; string modStr = string.Empty; Assert.IsTrue(credit.Validate(out err, out modStr)); Assert.IsNull(err); Assert.IsNull(modStr); }
public void TestValidateValidSingleCredit() { CreditList credit = new CreditList("IOTA", aEnums); string err = string.Empty; string modStr = string.Empty; Assert.IsTrue(credit.Validate(out err, out modStr)); Assert.IsNull(err); Assert.IsNull(modStr); }
public void TestValidateInvalidSingleCreditInList() { CreditList credit = new CreditList("IOTA,DXCC_BANE,DXCC_MODE", aEnums); string err = string.Empty; string modStr = string.Empty; Assert.IsFalse(credit.Validate(out err, out modStr)); Assert.AreEqual("\t'DXCC_BANE' not found in Credit enumeration", err); Assert.IsNull(modStr); }