Beispiel #1
0
 public void AddTailTest()
 {
     //also a test of the DisplayList method
     //head
     linkedList.AddTail('a');
     linkedList.AddTail('b');
     linkedList.AddTail('c');
     linkedList.AddTail('d');
     //tail
     //prints backwards
     Assert.AreEqual("a b c d ", linkedList.DisplayList());
 }
Beispiel #2
0
 public void AddTailTest()
 {
     //also a test of the DisplayList method
     //head
     studentList.AddTail(studentA);
     studentList.AddTail(studentB);
     studentList.AddTail(studentC);
     studentList.AddTail(studentD);
     //tail
     //prints backwards
     Assert.AreEqual("Sally Jerry Brian Terry ", studentList.DisplayList());
 }