Exemplo n.º 1
0
 public RoverConstraint(Rover expected)
 {
     _expected = expected;
 }
Exemplo n.º 2
0
 private static bool TestValuesForEquality(Rover expected, Rover actual)
 {
     return actual.Point.X == expected.Point.X
         && actual.Point.Y == expected.Point.Y
         && actual.Direction.CompassPoint == expected.Direction.CompassPoint;
 }
Exemplo n.º 3
0
 private void InitialiseRoverAt(int x, int y, CompassPoint direction)
 {
     _rover = new Rover(new GridPoint(x, y), new Direction(direction));
 }