Exemplo n.º 1
0
        public void WhenRobotTurnsRight_HasCorrectOrientation()
        {
            BattleArena      arena            = new BattleArena(5, 5);
            Robot            robot1           = new Robot(0, 0, Orientation.North);
            RobotTurnCommand command          = new RobotTurnCommand('R');
            IRobot           newRobotPosition = robot1.Turn(command);

            Assert.AreEqual(newRobotPosition.Orientation.ToString(), "E");
        }
Exemplo n.º 2
0
 public void WhenRobotDirectionIsInvalid_AnExceptionThrown()
 {
     RobotTurnCommand command = new RobotTurnCommand('X');
 }