public void ValidatesRemoveMethod() { var test = new ListCollection <int>(); test.Add(5); test.Add(3); test.Remove(5); Assert.Equal(3, test[0]); }
public void ValidatesIListRemoveMethod() { var test = new ListCollection <int>(); test.Add(5); test.Add(6); test.Add(4); test.Add(1); Assert.True(test.Remove(5)); }
public void ValidatesIListRemoveMethodAndDoesNotFindElement() { var test = new ListCollection <int>(); test.Add(5); test.Add(6); test.Add(4); test.Add(1); Assert.False(test.Remove(15)); }