Exemplo n.º 1
0
        public void PrintRobotInMapThroExceptionWithNullRobot()
        {
            var    robotAction = new RobotAction(new RoverCreator(new RoverBuilder()));
            IRobot rover       = null;

            robotAction.PrintRobotInMap(rover);
        }
Exemplo n.º 2
0
        public void PrintRobotInMapThroExceptionWithRobotCardinalPositionNull()
        {
            var robotAction = new RobotAction(new RoverCreator(new RoverBuilder()));
            var rover       = new Robot
            {
                Position = new CoordinatePoint()
            };

            robotAction.PrintRobotInMap(rover);
        }
Exemplo n.º 3
0
        public void PrintRobotInMapThroExceptionWithRobotPointPositionNull()
        {
            var robotAction = new RobotAction(new RoverCreator(new RoverBuilder()));
            var rover       = new Robot
            {
                FacingTo = CardinalPoint.South
            };

            robotAction.PrintRobotInMap(rover);
        }