public void ItShouldRemoveTasks() { TaskList testList = new TaskList(); Task testTask1 = new Task(); testTask1.TaskDescription = "First task"; Task testTask2 = new Task(); testTask2.TaskDescription = "Second task"; Task testTask3 = new Task(); testTask3.TaskDescription = "Third task"; testList.AddTask(ref testTask1); testList.AddTask(ref testTask2); testList.AddTask(ref testTask3); testList.RemoveTask(testTask2.TaskId); string actual = testList.GetTask(1).TaskDescription; string expected = "Third task"; Assert.AreEqual(expected, actual); }