public void CanDetectWhenRoundIsNotTheLastOne() { RoundBase firstRound = tournament.AddRoundRobinRound(); RoundBase secondRound = tournament.AddRoundRobinRound(); bool isFirstRound = firstRound.IsLastRound(); isFirstRound.Should().BeFalse(); }
public static void FindIssues(RoundBase round) { CheckWhetherRoundIsFilledUpToCapacityWithPlayers(round); CheckWhetherAdvancingAmountIsEqualOrGreaterThanPlayersPerGroup(round); if (round.IsLastRound()) { CheckWhetherLastRoundContainsMoreThanOneGroup(round); CheckWhetherLastRoundHasMoreThanOneAdvancingPerGroupCount(round); } }