public void GetLocationsWithBestYield_FirstFiveLocationsFromEmptyBoard_ReturnsExpectedLocations() { var gameBoard = new GameBoard(BoardSizes.Standard); var queryEngine = new GameBoardQuery(gameBoard); var results = queryEngine.GetLocationsWithBestYield(5); results.ShouldContainExact(new[] { 12u, 31u, 35u, 41u, 43u }); }
public void GetLocationsWithBestYield_FiveLocationsWhenLocationIsTaken_ReturnsExpectedLocations(uint settlementLocation, uint roadEndLocation, uint firstLocation, uint secondLocation, uint thirdLocation, uint fourthLocation, uint fifthLocation) { var gameBoard = new GameBoard(BoardSizes.Standard); gameBoard.PlaceStartingInfrastructure(Guid.NewGuid(), settlementLocation, roadEndLocation); var queryEngine = new GameBoardQuery(gameBoard); var results = queryEngine.GetLocationsWithBestYield(5); results.ShouldContainExact(new[] { firstLocation, secondLocation, thirdLocation, fourthLocation, fifthLocation }); }