public void ArrayPopTest() { ArrayStack stack = new ArrayStack(); stack.Push(10); stack.Push(9); stack.Pop(); Assert.IsTrue(stack.Top() == 10); }
public void ArrayPushTest() { ArrayStack stack = new ArrayStack(); stack.Push(1); stack.Push(2); stack.Push(3); Assert.IsTrue(stack.Top() == 3); }