public void PeekSingleItemStack() { Assert.That(SingleItemLinkedListStack.Peek(), Is.EqualTo(Items[0])); Assert.That(SingleItemLinkedListStack.Count, Is.EqualTo(1)); }
public void PopFromSingleItemStack() { Assert.That(SingleItemLinkedListStack.Pop(), Is.EqualTo(Items[0])); Assert.That(SingleItemLinkedListStack.Count, Is.EqualTo(0)); }
public void ClearSingleItemStack() { SingleItemLinkedListStack.Clear(); Assert.That(SingleItemLinkedListStack.Count, Is.EqualTo(0)); }