Example #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'));
 }
Example #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));
 }