Beispiel #1
0
 public void should_not_validate_rover_as_within_plateau_limits_when_northing_more_than_northboundary()
 {
     var plateau = new Plateau(5, 5);
     var rover = new Rover(3, 7, Direction.West);
     Assert.False(plateau.IsRoverWithinLimits(rover));
 }
Beispiel #2
0
 public void should_validate_rover_as_within_plateau_limits_when_easting_and_northing_less_than_eastboundary_and_northboundary()
 {
     var plateau = new Plateau(5, 5);
     var rover = new Rover(3, 4, Direction.North);
     Assert.IsTrue(plateau.IsRoverWithinLimits(rover));
 }
Beispiel #3
0
 public void should_not_validate_rover_as_within_plateau_limits_when_northing_less_than_0()
 {
     var plateau = new Plateau(5, 5);
     var rover = new Rover(3, -4, Direction.South);
     Assert.False(plateau.IsRoverWithinLimits(rover));
 }