@@ -0,0 +1,1591 @@
+package guitests;%0A%0Aimport static org.junit.Assert.assertTrue;%0Aimport static org.junit.Assert.assertEquals;%0Aimport static seedu.taskell.logic.commands.DoneCommand.MESSAGE_DONE_TASK_SUCCESS;%0A%0Aimport org.junit.Test;%0A%0Aimport guitests.guihandles.TaskCardHandle;%0Aimport seedu.taskell.testutil.TestTask;%0A%0Apublic class DoneCommandTest extends TaskManagerGuiTest %7B%0A    %0A    @Test%0A    public void done() %7B%0A        %0A        //done the first item on the list%0A        TestTask%5B%5D currentList = td.getTypicalTasks();%0A        int targetIndex = 1;%0A        assertDoneSuccess(targetIndex, currentList);%0A    %7D%0A    %0A    /**%0A     * Runs the done command to finish the task at specified index and confirms the result is correct.%0A     * @param targetIndexOneIndexed e.g. to mark the first task in the list as finished, 1 should be given as the target index.%0A     * @param currentList A copy of the current list of tasks (before marking as ).%0A     */%0A    private void assertDoneSuccess(int targetIndexOneIndexed, final TestTask%5B%5D currentList) %7B%0A        commandBox.runCommand(%22done %22 + targetIndexOneIndexed);%0A        TestTask taskToFinish = currentList%5BtargetIndexOneIndexed-1%5D; //-1 because array uses zero indexing%0A        %0A        //confirm the new card contains the right data%0A        TaskCardHandle updatedCard = taskListPanel.navigateToTask(taskToFinish.getDescription().description);%0A        %0A        assertEquals(%22finished%22, updatedCard.getTaskComplete());%0A        %0A        //confirm the result message is correct%0A        assertResultMessage(String.format(MESSAGE_DONE_TASK_SUCCESS, taskToFinish));%0A    %7D%0A%0A%7D%0A

Add DoneCommandTest