Example #1
0
        public void testIsFullFalse()
        {
            // ARRANGE
            StackLabCode.stack myStack = new StackLabCode.stack(1);
            bool actual, expected;

            // ACT
            actual   = myStack.isFull();
            expected = false;
            // ASSERT
            Assert.Equal(expected, actual);
        }
Example #2
0
        public void testIsFullTrue()
        {
            // ARRANGE
            StackLabCode.stack myStack = new StackLabCode.stack(1);
            string             item = "Java is Fun!";
            bool actual, expected;

            // ACT
            myStack.push(item);
            actual   = myStack.isFull();
            expected = true;
            // ASSERT
            Assert.Equal(expected, actual);
        }