private void PushTest(ISetOfStacks <int> setOfStacks) { for (int i = 0; i < _size; i++) { setOfStacks.Push(i); Assert.AreEqual(i, setOfStacks.Peek()); } }
private void PopTest(ISetOfStacks <int> setOfStacks) { for (int i = 0; i < _size; i++) { int peek = setOfStacks.Peek(); int item = setOfStacks.Pop(); Assert.AreEqual(peek, item); } }