Ejemplo n.º 1
0
        public void ProcessDataTest()
        {
            RoboticRover roboticNew = new RoboticRover('N', new Plateau(5, 5)
            {
                XAxis = 1, YAxis = 2
            });                                                                                          //Standard documentation test

            VehicleHelper.ProcessData("LMLMLMLMM", roboticNew, originalPlateau);

            RoboticRover roboticNew2 = new RoboticRover('E', new Plateau(5, 5)
            {
                XAxis = 3, YAxis = 3
            });                                                                                          //Standard documentation test

            VehicleHelper.ProcessData("MMRMMRMRRM", roboticNew2, originalPlateau);

            RoboticRover roboticNew3 = new RoboticRover('E', new Plateau(5, 5)
            {
                XAxis = 3, YAxis = 3
            });                                                                                           //Check for what happens if boundaries exceed

            VehicleHelper.ProcessData("MMMRMMRMRRM", roboticNew3, originalPlateau);

            RoboticRover roboticNew4 = new RoboticRover('E', new Plateau(5, 5)
            {
                XAxis = 3, YAxis = 3
            });                                                                                           //Check for if direction changes

            VehicleHelper.ProcessData("MMMRMMRMRRMR", roboticNew4, originalPlateau);
        }