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

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

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

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