public void ItShouldAddDateToTasksMarkedAsDone()
 {
     TaskList testList = new TaskList();
     Task testTask1 = new Task();
     testTask1.TaskDescription = "First task";
     Task testTask2 = new Task();
     testTask2.TaskDescription = "Second task";
     testList.AddTask(ref testTask1);
     testList.AddTask(ref testTask2);
     testList.MarkAsDone(testTask1.TaskId);
     string actual = testList.GetTask(0).DoneDate.Date.ToString("d");
     string expected = DateTime.Today.Date.ToString("d");
     Assert.AreEqual(expected, actual);
 }
 public void ItShouldMarkTasksAsDone()
 {
     TaskList testList = new TaskList();
     Task testTask1 = new Task();
     testTask1.TaskDescription = "First task";
     Task testTask2 = new Task();
     testTask2.TaskDescription = "Second task";
     testList.AddTask(ref testTask1);
     testList.AddTask(ref testTask2);
     testList.MarkAsDone(testTask1.TaskId);
     bool actual = testList.GetTask(0).IsDone;
     bool expected = true;
     Assert.AreEqual(expected, actual);
 }