Adding tests

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" }; ...

Get Improving your C# Skills now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.