Пример #1
0
 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));
 }
Пример #3
0
        public void ClearSingleItemStack()
        {
            SingleItemLinkedListStack.Clear();

            Assert.That(SingleItemLinkedListStack.Count, Is.EqualTo(0));
        }