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