public void new_Stack_can_Put_up_to_max_capacity() { var s = new CountableStack <int>(3); s.Put(100); Assert.IsTrue(s.CanPut()); s.Put(150); Assert.IsTrue(s.CanPut()); s.Put(200); Assert.IsFalse(s.CanPut()); }
public void new_Stack_can_Put() { var s = new CountableStack <int>(3); Assert.IsTrue(s.CanPut()); }
public void Stack_with_0_capacity_cannot_Put() { var s = new CountableStack <int>(0); Assert.IsFalse(s.CanPut()); }