public TileMover(LegalMovesCalculator legalMovesCalculator, MovementDeltaCalculator movementDeltaCalculator, MisplacedTilesCounter misplacedTilesCounter) { this.legalMovesCalculator = legalMovesCalculator; this.movementDeltaCalculator = movementDeltaCalculator; this.misplacedTilesCounter = misplacedTilesCounter; }
private void TestMovement(Movement movement, int expected) { MovementDeltaCalculator movementDeltaCalculator = new MovementDeltaCalculator(); AccessibleBoard board = new AccessibleBoard { AccessibleSize = SIZE }; int delta = movementDeltaCalculator.GetMovementDelta(board, movement); Assert.Equal(expected, delta); }