Exemplo n.º 1
0
 public void FindValueTest()
 {
     //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.FindValue('a'));
     Assert.AreEqual(false, linkedList.FindValue('D'));
 }
Exemplo n.º 2
0
 public void FindValueTest()
 {
     //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.FindValue(studentC));
     Assert.AreEqual(false, studentList.FindValue(studentZ));
 }