This change required quite a few new tests. Before we could make new tests, though, we had to first rename our existing completion test to represent the correct functionality. Adding two more tests to the TodoListCompleteTests file, we verify both that the item is marked complete and that it is not removed from the TODO list:
public class TodoListCompleteTests{ [Fact] public void ItHidesAnItemFromTheList() { // Arrange var todo = new TodoList(); var item = new Todo { Description = "Test Todo" }; todo.AddTodo(item); // Act todo.Complete(item); // Assert Assert.Equal(0, todo.Items.Count()); } [Fact] public void ItMarksAnItemComplete() { // Arrange var todo = new TodoList(); var item = new Todo { Description = "Test Todo" }; ...