public void CannotChangePlayersPerGroupSize() { DualTournamentRound round = tournament.AddDualTournamentRound(); round.Groups.First().Matches.Should().HaveCount(5); round.PlayersPerGroupCount.Should().Be(4); round.SetPlayersPerGroupCount(8); round.SetPlayersPerGroupCount(1); round.SetPlayersPerGroupCount(0); round.SetPlayersPerGroupCount(-1); round.Groups.First().Matches.Should().HaveCount(5); round.PlayersPerGroupCount.Should().Be(4); }
public PlayerInDualTournamentGroupTests() { tournament = Tournament.Create("GSL 2019"); round = tournament.AddDualTournamentRound(); round.SetAdvancingPerGroupCount(2); round.SetPlayersPerGroupCount(4); // Needed for the tournament flow to make sense, tournament cannot end with a dual tournament group tournament.AddBracketRound(); foreach (string playerName in playerNames) { tournament.RegisterPlayerReference(playerName); } tournament.RegisterPlayerReference("Stork"); group = round.Groups.First() as DualTournamentGroup; match = group.Matches.First(); match.SetBestOf(5); player = match.Player1; }