public void NewToDoId_ReturnsProperId()
        {
            var testList = new List <ToDo>();

            for (int i = 0; i < 5; i++)
            {
                testList.Add(new ToDo(i, "test", false, null));

                Assert.AreEqual(DataReaderWriter.NewToDoId(testList), testList.Count);
            }
        }
Ejemplo n.º 2
0
 public void AddToDo()
 {
     ToDoList.Add(new ToDo(DataReaderWriter.NewToDoId(ToDoList.ToList()), NewLabel, false, this));
     SaveToDos();
     NewLabel = string.Empty;
 }