public void RemoveFirstTest(int[] array, int[] ex) { LinkedListProject.LinkedList lList = new LinkedListProject.LinkedList(); if (array.Length < 2) { Assert.Throws <Exception>(() => lList.RemoveFirst()); } else { lList.AddLast(array); lList.RemoveFirst(); int[] actual = lList.ToArray(); Assert.AreEqual(ex, actual); } }