public void DeployThrowsRoverDeploymentException3() { Action action = () => RoverController.GetRoverController().Deploy( new Plateau(new Coordinate(3, 3)), "2 2 A" ); Assert.Throws <RoverDeploymentException>(action); }
public void Deploy() { var rover = RoverController.GetRoverController().Deploy( new Plateau(new Coordinate(3, 3)), "2 2 S" ); var expectedPosition = new Position { Coordinate = new Coordinate(2, 2), CompassDirection = CompassDirection.South }; Assert.NotNull(rover); Assert.Equal(expectedPosition, rover.Position); }