예제 #1
0
        public void AddPop()
        {
            var calc = new StackCountImpl();

            calc.Clear();
            calc.StackNumbers();
            Assert.AreEqual(50, calc.AddPop());
        }
예제 #2
0
        public void ClearTest()
        {
            var calc = new StackCountImpl();

            calc.StackNumbers();
            calc.Clear();
            Assert.AreEqual(0, calc.stack.Count);
        }
예제 #3
0
        public void AddTest()
        {
            var calc = new StackCountImpl();

            calc.Clear();
            calc.StackNumbers();
            Assert.AreEqual(100, calc.AddAll());
        }