public void RemoveAtMethodOutOfBoundsException() { var testList = new ListCollection <int>(); int[] testArray = new int[4]; Assert.Throws <ArgumentOutOfRangeException>(() => testList.RemoveAt(-2)); }
public void ValidatesRemoveAtMethod() { var test = new ListCollection <int>(); test.Add(5); test.Add(3); test.RemoveAt(0); Assert.Equal(3, test[0]); }