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"); }
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"); }