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