public void CheckIfIEnumWorksCorrectly() { var array = new DataStructures.SortedListCollection <int> { 0, 1, 4, 2, 3 }; Assert.Equal(4, array[4]); }
public void CheckIfInsertWorksCorrectly6() { var array = new DataStructures.SortedListCollection <int> { 0, 1, 2, 3, 4 }; array.Insert(5, 5); Assert.True(array[5] == 5); }
public void CheckIfInsertWorksCorrectly2() { var array = new DataStructures.SortedListCollection <int> { 0, 1, 2, 4, 5 }; array.Insert(3, 3); Assert.True(array[3] == 3); }
public void CheckIfInsertWorksCorrectly3() { var array = new DataStructures.SortedListCollection <int> { 0, 1, 2, 3, 4 }; array.Insert(0, 1); Assert.False(array[0] == 1); }
public void CheckIfIAddWorksCorrectly() { var array = new DataStructures.SortedListCollection <int> { 0, 1, 3, 4 }; array.Add(2); Assert.Equal(2, array[2]); }