package seedu.todo.guitests;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

public class ConsoleTest extends GuiTest {

    @Test
    public void testValidCommand_consoleInputCleared() {
        console.runCommand("list");
        assertEquals(console.getConsoleInputText(), "");
    }
    
}

package seedu.todo.guitests;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;

import org.junit.Test;

public class ConsoleTest extends GuiTest {
    
    @Test
    public void testValidCommand_consoleInputCleared() {
        console.runCommand("list");
        assertEquals(console.getConsoleInputText(), "");
    }

    @Test
    public void testInvalidCommand_consoleInputRemains() {
        console.runCommand("invalidcommand");
        assertNotEquals(console.getConsoleInputText(), "");
    }
    
}

Add invalid command console test
Add invalid command console test
