@@ -0,0 +1,1574 @@
+package guitests;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.util.Comparator;%0A%0Aimport org.junit.Test;%0A%0Aimport javafx.collections.ObservableList;%0Aimport seedu.manager.logic.commands.UnSortCommand;%0Aimport seedu.manager.model.task.ReadOnlyTask;%0Aimport seedu.manager.model.task.Task.TaskProperties;%0Aimport seedu.manager.testutil.TestTask;%0A%0A//@@author A0147924X%0Apublic class UnSortCommandTest extends TaskManagerGuiTest %7B%0A%09%0A%09@Test%0A%09public void unsort() %7B%0A%09%09assertUnSortSuccess(false);%0A%09%09%0A%09%09TestTask taskToAdd = td.hotel;%0A%09%09commandBox.runCommand(taskToAdd.getAddCommand());%0A        %0A        assertUnSortSuccess(false);%0A        %0A        commandBox.runCommand(%22done 1%22);%0A        assertUnSortSuccess(false);%0A        %0A        commandBox.runCommand(%22sort%22);%0A        assertUnSortSuccess(true);%0A%09%7D%0A%09%0A%09private void assertUnSortSuccess(boolean shouldRunSortCommand) %7B%0A        if (shouldRunSortCommand) %7B%0A        %09commandBox.runCommand(%22unsort%22);%0A%09%09%7D%0A        %0A        Comparator%3C? super ReadOnlyTask%3E doneComparator = (t1, t2) -%3E t1.compareProperty(t2, TaskProperties.DONE);%0A        %0A        assertTrue(isSorted(doneComparator, taskListPanel.getListView().getItems()));%0A        %0A        if (shouldRunSortCommand) %7B%0A        %09assertResultMessage(UnSortCommand.MESSAGE_SUCCESS);%0A%09%09%7D%0A    %7D%0A%09%0A%09private boolean isSorted(Comparator%3C? super ReadOnlyTask%3E comparator, ObservableList%3CReadOnlyTask%3E listToCheck) %7B%0A%09%09for (int i = 1; i %3C listToCheck.size(); i++) %7B%0A%09%09%09if (comparator.compare(listToCheck.get(i - 1), listToCheck.get(i)) %3E 0) %7B%0A%09%09%09%09return false;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return true;%0A%09%7D%0A%7D%0A

Add UnSort test