コード例 #1
0
 public RoverConstraint(Rover expected)
 {
     _expected = expected;
 }
コード例 #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;
 }
コード例 #3
0
 private void InitialiseRoverAt(int x, int y, CompassPoint direction)
 {
     _rover = new Rover(new GridPoint(x, y), new Direction(direction));
 }