public void GenerateTilesWithCoordinates_WithSizeLessThanOrEqualToZero_ReturnsEmptyList(int size) { var service = new BoardService(); var tiles = service.GenerateTilesWithCoordinates(size); Assert.Empty(tiles); }
public void GenerateTilesWithCoordinates_WithSize1_SetsCorrectPositionAndCoordinates() { var service = new BoardService(); var tiles = service.GenerateTilesWithCoordinates(1).ToList(); AssertPositionAndCoordinate(tiles[0], 1, 1, 1); }
public void GenerateTilesWithCoordinates_ReturnsXxXNumberOfTiles(int size, int numberOfTiles) { var service = new BoardService(); var tiles = service.GenerateTilesWithCoordinates(size); Assert.Equal(numberOfTiles, tiles.Count()); }
public void GenerateTilesWithCoordinates_WithSize2_SetsCorrectPositionAndCoordinates() { var service = new BoardService(); var tiles = service.GenerateTilesWithCoordinates(2).ToList(); AssertPositionAndCoordinate(tiles[0], 1, 1, 1); AssertPositionAndCoordinate(tiles[1], 2, 2, 1); AssertPositionAndCoordinate(tiles[2], 3, 1, 2); AssertPositionAndCoordinate(tiles[3], 4, 2, 2); }