Пример #1
0
 public void RemoveLast_OnValidParam_DoesNotContainRemovedLastItem(int[] itemsToAdd, int removedItem)
 {
     foreach (var item in itemsToAdd)
     {
         _linkedList.AddLast(item);
     }
     _linkedList.RemoveLast();
     Assert.DoesNotContain(removedItem, _linkedList);
 }
Пример #2
0
 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);
 }