コード例 #1
0
 public void Test_InvalidInitialPosition()
 {
     plateau.AddObstacle(new Coords(0, 0));
     rover = new Rover(plateau, position, CardinalDirection.North);
 }
コード例 #2
0
 public void Test_SetValidRoverPosition()
 {
     position = new Coords(0, 0);
     rover    = new Rover(plateau, position, CardinalDirection.North);
     rover.SetPosition(9, 0, CardinalDirection.East);
 }
コード例 #3
0
 public void Initialize()
 {
     plateau.SetSize(new Size(5, 5));
     position = new Coords(0, 0);
     rover    = new Rover(plateau, position, CardinalDirection.North);
 }
コード例 #4
0
 public void Test_SetInvalidRoverPositionConstructor()
 {
     position = new Coords(6, 0);
     rover    = new Rover(plateau, position, CardinalDirection.North);
 }