public void Setup() { tasks = new DummyTasksStorage(); projects = new DummyProjectStorage(); Task.SetupStorage(tasks); Project.SetupStorage(projects); }
public void Remove_RemoveNonexistent_NothingHappens() { Task taskOld = Task.CreateNew("2020/12/30 test task 1", new DateTime(2020, 12, 30)); tasks = new DummyTasksStorage(); Task.SetupStorage(tasks); Task task1 = Task.CreateNew("NEW 2020/12/30 test task 1", new DateTime(2020, 12, 30)); Task task2 = Task.CreateNew("NEW 2020/12/30 test task 2", new DateTime(2020, 12, 30)); Task task3 = Task.CreateNew("NEW 2020/10/20 test task 3", new DateTime(2020, 10, 20)); Assert.AreEqual(3, Task.Count); Task.Remove(taskOld); Assert.AreEqual(3, Task.Count); }