package guitests;

import static org.junit.Assert.*;

import org.junit.Test;

import guitests.guihandles.TaskCardHandle;
import seedu.testplanner.testutil.TestTask;
//@@author A0139102U
public class UnpinCommandTest extends DailyPlannerGuiTest {

	@Test
	public void unpin() {

		TestTask[] currentList = td.getTypicalTasks();
		TestTask taskToUnpin = td.CS2103_Project;
		
		commandBox.runCommand("pin 1");
		assertUnpinSuccess("unpin 1", taskToUnpin);

	}

	private void assertUnpinSuccess(String command, TestTask taskToUnpin) {

		commandBox.runCommand(command);

		// confirm there is now no tasks in the pinned list
		assertEquals(pinnedListPanel.getNumberOfPeople(), 0);
	}
}

@@ -275,57 +275,8 @@
  %7B%0A%0A
-%09%09TestTask%5B%5D currentList = td.getTypicalTasks();%0A
 %09%09Te
@@ -538,20 +538,29 @@
  is 
-now no tasks
+only 1 task remaining
  in 
@@ -627,17 +627,17 @@
 ople(), 
-0
+1
 );%0A%09%7D%0A%7D%0A

Fix unpin test bug