public void should_not_be_able_to_close_a_projectTask_once_started() { var sut = new ProjectTask(); sut.Start(); sut.Close(); Assert.That(sut.Status, Is.EqualTo(TaskStatus.Started)); }
public void client_test_harness_problem() { var projectTask = new ProjectTask(); projectTask.Start(); var tasks = new List<Task> { projectTask, new Task(), new Task(), new Task(), new Task() }; TaskManager.CloseAllTasks(tasks); foreach (var task in tasks) { Assert.That(task.Status, Is.EqualTo(TaskStatus.Closed)); } }