Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }