示例#1
0
        public void TestTop()
        {
            StackOfInt SOI       = new StackOfInt();
            double     expResult = 2;

            SOI.Push(expResult);
            double result = SOI.Top();

            Assert.AreEqual(expResult, result);

            double expResult2 = 3;

            SOI.Push(expResult2);
            double result2 = SOI.Top();

            Assert.AreEqual(expResult2, result2);
        }