Beispiel #1
0
        public void GivenHandleCommand_WhenNotPlaced_ThenInvalidResponse()
        {
            _robot.Setup(x => x.IsPlaced).Returns(false);
            var response = _handler.HandleCommand(new RobotCommand(), _robot.Object, _surface.Object);

            response.Should().NotBeNull();
            response.ResponseType.Should().Be(RobotResponseType.Invalid);
        }