Example #1
0
 public void TestMoreFieldsValid()
 {
     AdifString aS = new AdifString("<call:5>VA3HJ <eor>");
     Assert.IsTrue(aS.moreFields());
 }
Example #2
0
 public void TestGetNextFieldValidData()
 {
     AdifString aS = new AdifString("<call:5>VA3HJ <qso_date:8>20080722" +
         "<time_on:6>061219 <eor>");
     Assert.AreEqual(aS.getNextField(), "<call:5>VA3HJ");
     Assert.AreEqual(aS.getNextField(), "<qso_date:8>20080722");
     Assert.AreEqual(aS.getNextField(), "<time_on:6>061219");
     Assert.AreEqual(aS.getNextField(), "<eor>");
 }
Example #3
0
 public void TestGetNextFieldNoMoreFields()
 {
     AdifString aS = new AdifString("<call:5>VA3HJ <qso_date:8>20080722 " +
         "<time_on:6>061219 <eor>");
     aS.getNextField();
     aS.getNextField();
     aS.getNextField();
     aS.getNextField();
     // should fail on this call
     aS.getNextField();
     Assert.Fail("TestGetNextFieldNoMoreFields test failed");
 }
Example #4
0
 public void TestGetNextFieldOverflowLength()
 {
     AdifString aS = new AdifString("<call:999999999999>VA3HJ<eor>");
     aS.getNextField();
     Assert.Fail("TestGetNextFieldOverflowLength test failed");
 }
Example #5
0
 public void TestGetNextFieldBadDataLength()
 {
     AdifString aS = new AdifString("<call:F>VA3HJ<eor>");
     aS.getNextField();
     Assert.Fail("TestGetNextFieldBadDataLength test failed");
 }