public void Stack_with_1_element_can_Pop() { var s = new CountableStack <int>(2); s.Put(5); Assert.IsTrue(s.CanPop()); }
public void Stack_emptied_cannot_Pop() { var s = new CountableStack <int>(2); s.Put(5); s.Pop(); Assert.IsFalse(s.CanPop()); }
public void new_Stack_can_Pop_down_to_empty() { var s = new CountableStack <int>(3); s.Put(100); s.Put(150); s.Put(200); Assert.IsTrue(s.CanPop()); s.Pop(); Assert.IsTrue(s.CanPop()); s.Pop(); Assert.IsTrue(s.CanPop()); s.Pop(); Assert.IsFalse(s.CanPop()); }
public void new_Stack_cannot_Pop() { var s = new CountableStack <int>(5); Assert.IsFalse(s.CanPop()); }