public void Test3_GetDescription_ReturnDescription() { string description01 = "Walk the dog"; Task newTask = new Task(description01); Console.WriteLine("I AM RUNNING"); string result = newTask.GetDescription(); // List<Task> result2 = Task.GetAll(); // foreach (Task thisTask in result2) // { // Console.WriteLine("Output: " + thisTask.GetDescription()); // } Assert.Equal(description01, result); }
public void Test2_GetAll_ReturnTasks() { string description01 = "Walk the dog"; string description02 = "Wash the dishes"; Task newTask1 = new Task(description01); Task newTask2 = new Task(description02); List<Task> newList = new List<Task> { newTask1, newTask2 }; List<Task> result = Task.GetAll(); // foreach (Task thisTask in result) // { // Console.WriteLine("Output: " + thisTask.GetDescription()); // } Assert.Equal(newList, result); }