public void AdvancingCountInDualTournamentRoundCannotBeAnythingOtherThanTwo() { DualTournamentRound round = tournament.AddDualTournamentRound(); for (int advancingPerGroupCount = -5; advancingPerGroupCount < 16; ++advancingPerGroupCount) { round.SetAdvancingPerGroupCount(advancingPerGroupCount); round.AdvancingPerGroupCount.Should().Be(2); } }
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; }