public void AddLastTwoTest()
 {
     LinkedListAbstract list = new LinkedListMemoryCritical();
     list.AddLast(10);
     list.AddLast(20);
     AssertSequenceEquals(new[] { 10, 20 }, list);
 }
 public void DeleteTest()
 {
     LinkedListAbstract linkedList = new LinkedListMemoryCritical();
     int[] basicList = new[] { 0, 1, 2, 3, 4 };
     int[] expectedList = new[] { 0, 1, 3, 4 };
     foreach (int element in basicList)
     {
         linkedList.AddLast(element);
     }
     linkedList.Delete(2);
     AssertSequenceEquals(expectedList, linkedList);
 }
 public void DeleteNonExistingTest()
 {
     LinkedListAbstract linkedList = new LinkedListMemoryCritical();
     int[] basicList = new[] { 0, 1, 2, 3, 4 };
     foreach (int element in basicList)
     {
         linkedList.AddLast(element);
     }
     linkedList.Delete(5);
 }