public void RemoveLast_OnValidParam_DoesNotContainRemovedLastItem(int[] itemsToAdd, int removedItem) { foreach (var item in itemsToAdd) { _linkedList.AddLast(item); } _linkedList.RemoveLast(); Assert.DoesNotContain(removedItem, _linkedList); }
public void RemoveLast_OnValidParam_DoesNotContainRemovedLastItem(int[] itemsToAdd, int removedItem) { //Arrange foreach (var item in itemsToAdd) { _linkedList.AddLast(item); } //Act _linkedList.RemoveLast(); //Assert CollectionAssert.DoesNotContain(_linkedList, removedItem); }