Ejemplo n.º 1
0
 public void IndexOfMaxTest(int[] array, int ex)
 {
     LinkedListProject.LinkedList lList = new LinkedListProject.LinkedList();
     if (array.Length == 0)
     {
         Assert.Throws <Exception>(() => lList.IndexOfMax());
     }
     else
     {
         lList.AddLast(array);
         int actual = lList.IndexOfMax();
         Assert.AreEqual(ex, actual);
     }
 }