Beispiel #1
0
        public void Implement_Stack_Using_Array()
        {
            StackArray stack = new StackArray(100, output);

            stack.push(2);
            stack.push(3);

            Assert.Equal(3, stack.pop());
            stack.push(4);
            Assert.Equal(4, stack.pop());
            stack.printStack();
        }