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(), "");
    }
    
}

@@ -67,16 +67,64 @@
 tEquals;
+%0Aimport static org.junit.Assert.assertNotEquals;
 %0A%0Aimport
@@ -184,17 +184,21 @@
 iTest %7B%0A
+    
 %0A
-
     @Tes
@@ -288,24 +288,24 @@
 nd(%22list%22);%0A
-
         asse
@@ -354,16 +354,198 @@
 );%0A    %7D
+%0A%0A    @Test%0A    public void testInvalidCommand_consoleInputRemains() %7B%0A        console.runCommand(%22invalidcommand%22);%0A        assertNotEquals(console.getConsoleInputText(), %22%22);%0A    %7D
 %0A    %0A%7D%0A

Add invalid command console test