public void RemoveFirst_ShouldYieldEmptyList_GivenOneElement() { // arrange var value = 1; sut.AddFirst(value); // act var removed = sut.RemoveFirst(); // assert Assert.AreEqual(value, removed); Assert.AreEqual(0, sut.Count); Assert.IsNull(sut.Head); Assert.IsNull(sut.Tail); }
public T Pop() { return(linkedList.RemoveFirst()); }
public T Dequeue() { return(linkedList.RemoveFirst()); }