public void Remove_FromArray_ItemIsNotAvailableForRemoval() { //arrange CustomList2 <int> firstlist = new CustomList2 <int>(); int expected = 4; int actual = firstlist[3]; //act firstlist.Add(1); firstlist.Add(2); firstlist.Add(3); firstlist.Add(4); firstlist.Remove(2); //assert Assert.AreEqual(expected, actual); }
public void Remove_FromArray_ItemIsAvailableForRemoval() { //arrange CustomList2 <int> firstlist = new CustomList2 <int>(); int expected = 0; int actual = firstlist[3]; int input = 3; //act firstlist.Add(1); firstlist.Add(2); firstlist.Add(3); firstlist.Add(4); firstlist.Remove(1); ///firstlist = firstlist.Where(Val => Val != input).ToArray(); //assert Assert.AreEqual(expected, actual); }