示例#1
0
        public void IsEmpty_ForNonEmptyStack_ReturnsFalse()
        {
            IBasicStack <int> stack = new BasicStack <int>();

            for (var i = 0; i < 3; i++)
            {
                stack.Push(i);
            }

            Assert.False(stack.IsEmpty());
        }
示例#2
0
        public void IsEmpty_ForEmptyStack_ReturnsTrue()
        {
            IBasicStack <int> stack = new BasicStack <int>();

            Assert.True(stack.IsEmpty());
        }