Exemplo n.º 1
0
        public void MaxStackTest()
        {
            MaxStack ms = new MaxStack();

            ms.mPush(3);
            ms.mPush(11);
            ms.mPop();
            ms.mPush(4);
            ms.mPush(6);
            ms.mPop();
            ms.mPush(2);
            ms.mPop();

            Assert.Equal(ms.GetMax(), 4);
        }