Beispiel #1
0
        public void count2()
        {
            MyStack <string> stack = new MyStack <string>();

            stack.Push("6");
            stack.Push("8");
            int expected = 2;

            Assert.AreEqual(expected, stack.Count());
        }
Beispiel #2
0
        public void count()
        {
            MyStack <string> stack = new MyStack <string>();

            stack.Push("1");
            stack.Push("2");
            stack.Push("3");
            stack.Push("4");
            stack.Push("5");
            stack.Push("6");
            stack.Push("7");
            stack.Push("8");
            stack.Push("9");
            int expected = 9;

            Assert.AreEqual(expected, stack.Count());
        }