Exemplo n.º 1
0
        public void ClearListCantPopItem()
        {
            var stack = new StackAsList <string>();

            stack.Push("test");
            stack.Clear();
            stack.Pop();
        }
Exemplo n.º 2
0
        public void ClearListResetsCountTo0()
        {
            var stack = new StackAsList <string>();

            stack.Push("test");
            stack.Clear();
            Assert.AreEqual(0, stack.Count);
        }