Ejemplo n.º 1
0
        public void TaskShouldBeStartedThenStopped()
        {
            var task    = mokeData.GetUserTaskList(Guid.Empty).First();
            var command = new StartCommand(task);

            command.Execute();
            Assert.That(task.State, Is.EqualTo(TaskState.Started));

            command.Undo();
            Assert.That(task.State, Is.EqualTo(TaskState.Stopped));
        }