Пример #1
0
        public void AndTheCommandIsQuitThenTheRoverDoesntMoveWithLogging()
        {
            _roverDecorator.ProcessCommand(Command.Quit);

            _rover.DidNotReceive().MoveForward();
            _rover.DidNotReceive().MoveBackward();
            _rover.DidNotReceive().TurnLeft();
            _rover.DidNotReceive().TurnRight();
            _logger.Received(1).Log("Rover stopped.");
            _logger.Received(1).Log(Arg.Is <string>(s => s.StartsWith("Rover is at ")));
        }