public void TodoInsert_Test() { TodoDataRetrieval _dataRetrieval = new TodoDataRetrieval(); Todo item = new Todo(); _todolist.Clear(); _todolist = _dataRetrieval.TodoInsert(item, _todolist); int count = _dataRetrieval.TodoCount(_todolist); Assert.AreEqual(count, 1); }
public void TodoRemove_Test() { TodoDataRetrieval _dataRetrieval = new TodoDataRetrieval(); _todolist.Clear(); AddDummyData(); _todolist = _dataRetrieval.TodoRemove(1, _todolist); int count = _dataRetrieval.TodoCount(_todolist); Assert.AreEqual(count, 2); }
public void TodoGetAllInactive_Test() { TodoDataRetrieval _dataRetrieval = new TodoDataRetrieval(); _todolist.Clear(); AddDummyData(); _todolist = _dataRetrieval.TodoGetAllInactive(_todolist); int count = _dataRetrieval.TodoCount(_todolist); Assert.AreEqual(count, 1); }