Exemple #1
0
        public void ClearListCantPopItem()
        {
            var stack = new StackAsList <string>();

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

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