public void AddLast() { int size = 100; int[] array = SetupLinkList.UniqueRandomization(size); MyLinkedList <int> list = SetupLinkList.ListGenerator(array, AddType.AddLast); CheckList(array, list, size); }
public void Remove() { int size = 100; int[] array = SetupLinkList.UniqueRandomization(size); MyLinkedList <int> list = SetupLinkList.ListGenerator(array, AddType.AddLast); Assert.True(list.Remove(array[0])); Assert.False(list.Contains(array[0])); Assert.True(list.Remove(array[49])); Assert.False(list.Contains(array[49])); Assert.True(list.Remove(array[99])); Assert.False(list.Contains(array[99])); }