Esempio n. 1
0
 public void TestReplaceAwardsWithCreditsAwardAndCredits()
 {
     Credit_Granted credit = new Credit_Granted("IOTA,DXCC_BAND,CQWAZ_CW", aEnums);
     string err = string.Empty;
     credit.ReplaceAwardsWithCredits(ref err);
     Assert.AreEqual("<Credit_Granted:25>IOTA,DXCC_BAND,CQWAZ_MODE", credit.ToAdifString());
     Assert.AreEqual("\t\tAward 'CQWAZ_CW' replaced with Credit 'CQWAZ_MODE'." +
                     Environment.NewLine, err);
 }
Esempio n. 2
0
 public void TestReplaceAwardsWithCreditsAwardReplacementSameAsCredit()
 {
     Credit_Granted credit = new Credit_Granted("IOTA,JCG,CQWAZ_CW,CQWAZ_MODE", aEnums);
     string err = string.Empty;
     credit.ReplaceAwardsWithCredits(ref err);
     Assert.AreEqual("<Credit_Granted: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);
 }
Esempio n. 3
0
 public void TestToAdifStringMultipleCreditsWithMedium()
 {
     Credit_Granted credit = new Credit_Granted("IOTA, DXCC_BAND:CARD&LOTW,DXCC_MODE", aEnums);
     Assert.AreEqual("<Credit_Granted:34>IOTA,DXCC_BAND:CARD&LOTW,DXCC_MODE", credit.ToAdifString());
 }
Esempio n. 4
0
 public void TestToAdifStringMultipleCredits()
 {
     Credit_Granted credit = new Credit_Granted("IOTA, DXCC_BAND,DXCC_MODE", aEnums);
     Assert.AreEqual("<Credit_Granted:24>IOTA,DXCC_BAND,DXCC_MODE", credit.ToAdifString());
 }
Esempio n. 5
0
 public void TestToAdifString()
 {
     Credit_Granted credit = new Credit_Granted("IOTA", aEnums);
     Assert.AreEqual("<Credit_Granted:4>IOTA", credit.ToAdifString());
 }
Esempio n. 6
0
 public void TestReplaceAwardsWithCreditsOnlyCredits()
 {
     Credit_Granted credit = new Credit_Granted("IOTA,DXCC_BAND,DXCC_MODE", aEnums);
     string err = string.Empty;
     credit.ReplaceAwardsWithCredits(ref err);
     Assert.AreEqual("<Credit_Granted:24>IOTA,DXCC_BAND,DXCC_MODE", credit.ToAdifString());
     Assert.IsNull(err);
 }