public void Turn(TurnInstructions input, string output) { var instruction = new Instruction(_pluto, _rover, input.ToString()); _turnOperation.Execute(instruction); _rover.CurrentDirection.Should().Be(output); }
public void TurnAndMove(TurnInstructions turnInstruction, MoveInstructions moveInstruction, int yPosition, int xPosition) { var firstInstruction = new Instruction(_pluto, _rover, turnInstruction.ToString()); var secondInstruction = new Instruction(_pluto, _rover, moveInstruction.ToString()); _turnOperation.Execute(firstInstruction); _movementOperation.Execute(secondInstruction); _rover.PosY.Should().Be(yPosition); _rover.PosX.Should().Be(xPosition); }