public void VerifyCountAfterRemoveMultipleValues() { //Arrange WilliamsCustomList <int> willsList = new WilliamsCustomList <int>(); int value = 6; int secondValue = 12; int thirdValue = 18; int fourthValue = 24; int expectedResult = 24; //Act willsList.Remove(value); willsList.Remove(secondValue); willsList.Remove(thirdValue); willsList.Add(fourthValue); //Assert Assert.AreEqual(expectedResult, willsList[0]); }
public void VerifyCountAfterRemoveFirstValue() { //Arrange WilliamsCustomList <int> willsList = new WilliamsCustomList <int>(); int value = 6; int secondValue = 12; int expectResult = 12; //Act willsList.Remove(value); willsList.Add(secondValue); //Assert //[1] Assert.AreEqual(expectResult, willsList[0]); }