Beispiel #1
0
 public void TestToAdifString1Credit()
 {
     CreditList list = new CreditList("IOTA", aEnums);
     Assert.AreEqual("<CreditList:4>IOTA", list.ToAdifString());
 }
Beispiel #2
0
 public void TestToAdifString4Credits()
 {
     CreditList list = new CreditList("WAS:LOTW,IOTA,DXCC_BAND:LOTW&CARD,DXCC_MODE:LOTW&CARD", aEnums);
     Assert.AreEqual("<CreditList:53>WAS:LOTW,IOTA,DXCC_BAND:LOTW&CARD,DXCC_MODE:LOTW&CARD", list.ToAdifString());
 }
Beispiel #3
0
 public void TestToAdifString0Credits()
 {
     CreditList list = new CreditList();
     Assert.AreEqual("<CreditList:0>", list.ToAdifString());
 }
Beispiel #4
0
 public void TestReplaceAwardsWithCreditsOnlyCredits()
 {
     CreditList credit = new CreditList("IOTA,DXCC_BAND,DXCC_MODE", aEnums);
     string err = string.Empty;
     credit.ReplaceAwardsWithCredits(ref err);
     Assert.AreEqual("<CreditList:24>IOTA,DXCC_BAND,DXCC_MODE", credit.ToAdifString());
     Assert.IsNull(err);
 }
Beispiel #5
0
 public void TestReplaceAwardsWithCreditsNoReplacementAward()
 {
     CreditList credit = new CreditList("IOTA,JCG,CQWAZ_CW", aEnums);
     string err = string.Empty;
     credit.ReplaceAwardsWithCredits(ref err);
     Assert.AreEqual("<CreditList:15>IOTA,CQWAZ_MODE", credit.ToAdifString());
     Assert.AreEqual("\t\tAward 'JCG' deleted because there is no equivalent Credit." +
                     Environment.NewLine +
                     "\t\tAward 'CQWAZ_CW' replaced with Credit 'CQWAZ_MODE'." +
                     Environment.NewLine, err);
 }
Beispiel #6
0
 public void TestReplaceAwardsWithCreditsAwardReplacementSameAsCreditWithoutMedium()
 {
     CreditList credit = new CreditList("IOTA,JCG,CQWAZ_CW,CQWAZ_MODE:CARD&LOTW", aEnums);
     string err = string.Empty;
     credit.ReplaceAwardsWithCredits(ref err);
     Assert.AreEqual("<CreditList:36>IOTA,CQWAZ_MODE,CQWAZ_MODE:CARD&LOTW", credit.ToAdifString());
 }
Beispiel #7
0
 public void TestReplaceAwardsWithCreditsAwardAndCredits()
 {
     CreditList credit = new CreditList("IOTA,DXCC_BAND,CQWAZ_CW", aEnums);
     string err = string.Empty;
     credit.ReplaceAwardsWithCredits(ref err);
     Assert.AreEqual("<CreditList:25>IOTA,DXCC_BAND,CQWAZ_MODE", credit.ToAdifString());
     Assert.AreEqual("\t\tAward 'CQWAZ_CW' replaced with Credit 'CQWAZ_MODE'." +
                     Environment.NewLine, err);
 }