public void Execute_R1() { instruction = new MapInstruction("R1"); instruction.Execute(position); Assert.True(position.GetOrientation() == Orientation.East && position.GetPosition().X == 1 && position.GetPosition().Y == 0); }
public void Execute_L2() { instruction = new MapInstruction("L2"); instruction.Execute(position); Assert.True(position.GetOrientation() == Orientation.West && position.GetPosition().X == -2 && position.GetPosition().Y == 0); }