示例#1
0
        public static void ClearTest()
        {
            var stack = new ListBasedStack <int>(new[] { 0, 1, 2, 3, 4 });

            stack.Clear();
            stack.Count.Should().Be(0);
        }
        public static void ClearTest()
        {
            var stack = new ListBasedStack <int>(new[] { 0, 1, 2, 3, 4 });

            stack.Clear();
            Assert.IsTrue(stack.Count == 0);
        }