/// <summary> /// Set the second Rover initial position and the plateau upper right corner. /// </summary> private void SetupSecondRover() { secondRover = new RoverNavigation(3, 3, RoverNavigation.Direction.E, new Plateau(5, 5)); }
public void FirstRoverCoordinatesOutofRange() { firstRover = new RoverNavigation(1, 7, RoverNavigation.Direction.N, new Plateau(5, 5)); Assert.True(firstRover.PositionX <= firstRover.Plateau.X && firstRover.PositionY <= firstRover.Plateau.Y, "The coordinates position is out of plateau range"); }
/// <summary> /// Set the first Rover initial position and the plateau upper right corner. /// </summary> private void SetupFirstRover() { firstRover = new RoverNavigation(1, 2, RoverNavigation.Direction.N, new Plateau(5, 5)); }