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); }
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); }