/// <inheritdoc/> public override void Move(MovementType movementType, int newX, int newY) { if (movementType == MovementType.Move) { _movementSerivce.Move(newX, newY); } }
public void AssertThatMovesArePerformedCorrectly() { var horizontal = 0; var vertical = 0; var direction = Direction.NORTH; var coordinates = movementService.Move(direction, horizontal, vertical); Assert.Equal(0, coordinates.nextHorizontal); Assert.Equal(1, coordinates.nextVertical); Assert.False(coordinates.isIllegal); }