public void ClearListCantPopItem() { var stack = new StackAsList <string>(); stack.Push("test"); stack.Clear(); stack.Pop(); }
public void ClearListResetsCountTo0() { var stack = new StackAsList <string>(); stack.Push("test"); stack.Clear(); Assert.AreEqual(0, stack.Count); }