Пример #1
0
        public void IncorrectInput()
        {
            Plateau plateauOne = new Plateau(new Coordinates(5, 5));
            Rover   firstRover = new Rover(new Coordinates(1, 2), Direction.North, new List <Instruction> {
                Instruction.Left, Instruction.Forward, Instruction.Forward, Instruction.Forward, Instruction.Forward, Instruction.Forward, Instruction.Forward, Instruction.Forward, Instruction.Forward, Instruction.Forward
            });
            HepsiBuradaControlStation st = new HepsiBuradaControlStation(plateauOne, firstRover);

            Assert.AreEqual(st.Control(), "Error While Processing Control");
        }
Пример #2
0
        public void RoverCheckOutput()
        {
            Plateau plateauOne = new Plateau(new Coordinates(5, 5));
            Rover   firstRover = new Rover(new Coordinates(1, 2), Direction.North, new List <Instruction> {
                Instruction.Left, Instruction.Forward, Instruction.Left, Instruction.Forward, Instruction.Left, Instruction.Forward, Instruction.Left, Instruction.Forward, Instruction.Forward
            });
            HepsiBuradaControlStation st = new HepsiBuradaControlStation(plateauOne, firstRover);

            Assert.AreEqual(st.Control(), "1 3 North");
        }