예제 #1
0
        public void uncheck_a_task_that_exists()
        {
            var checkTaskCommand = new SetDoneCommand(_fakeConsole, _taskRepository, _task.Id.ToString(), false);

            checkTaskCommand.Execute();

            Assert.That(_task.Done, Is.False);
        }
예제 #2
0
        public void shows_a_message_if_task_is_not_found()
        {
            var checkTaskCommand = new SetDoneCommand(_fakeConsole, _taskRepository, "not_there", false);

            checkTaskCommand.Execute();

            _fakeConsole.Received().WriteLine("Could not find a task with an ID of {0}.", "not_there");
        }