public void Move_Forward(string initialDirection, int endX, int endY) { var direction = Direction.FromCode(initialDirection); var position = Position.Create(1, 1); var sut = new MarsRover(direction, position); sut.MoveForward(); sut.Position.X.Should().Be(endX); sut.Position.Y.Should().Be(endY); }
public void Execute() { _receiver.MoveForward(); }