public void Creation() { Stacc <int> s = new Stacc <int>(3); s.Push(1); s.Push(2); s.Push(3); int value = s.Pop(); Assert.AreEqual(3, value); Assert.AreEqual(2, s.Size); }
public void Too_Much_Pop() { Stacc <int> s = new Stacc <int>(3); Assert.Throws <ExpanditureProhibitionException>(() => s.Pop()); }