Exemple #1
0
 public void RoverCommandM()
 {
     RoverInputExecuter.Execute(Rover, 'M');
     Assert.AreEqual(Rover.Position.Point, new Point(1, 2));
 }
Exemple #2
0
 public void RoverCommandL_M()
 {
     RoverInputExecuter.Execute(Rover, "LM");
     Assert.AreEqual(Rover.Position.Point, new Point(0, 1));
 }
Exemple #3
0
 public void RoverCommandR()
 {
     RoverInputExecuter.Execute(Rover, 'R');
     Assert.AreEqual(Rover.Position.Heading, Cardinals.Get("E"));
 }