示例#1
0
        public void FindByIDTest() //Test to find if it finds the ID
        {
            //Arrange
            ToDoItems toDoItems   = new ToDoItems();
            int       toDoId      = 1;
            string    description = "Learn to code";

            PersonSequencer.Reset();

            toDoItems.AddNewToDo(toDoId, description);

            //Act
            ToDo result = toDoItems.FindToDoById(toDoId);

            //Assert
            Assert.Contains(toDoId.ToString(), result.ToDoInformation());
            Assert.Contains(description, result.ToDoInformation());
        }