Exemplo n.º 1
0
 public void FindRemoveTest()
 {
     //also a test of the DisplayList method
     linkedList.AddHead('a'); //tail
     linkedList.AddHead('b');
     linkedList.AddHead('c');
     linkedList.AddHead('d'); //head
     Assert.AreEqual(true, linkedList.FindRemove('a'));
     Assert.AreEqual("d c b ", linkedList.DisplayList());
 }
Exemplo n.º 2
0
 public void FindRemoveTest()
 {
     //also a test of the DisplayList method
     studentList.AddHead(studentA); //tail
     studentList.AddHead(studentB);
     studentList.AddHead(studentC);
     studentList.AddHead(studentD); //head
     Assert.AreEqual(true, studentList.FindRemove(studentC));
     Assert.AreEqual("Terry Jerry Sally ", studentList.DisplayList());
 }