Beispiel #1
0
        public void CanDetectWhenRoundIsNotTheLastOne()
        {
            RoundBase firstRound  = tournament.AddRoundRobinRound();
            RoundBase secondRound = tournament.AddRoundRobinRound();

            bool isFirstRound = firstRound.IsLastRound();

            isFirstRound.Should().BeFalse();
        }
Beispiel #2
0
        public static void FindIssues(RoundBase round)
        {
            CheckWhetherRoundIsFilledUpToCapacityWithPlayers(round);
            CheckWhetherAdvancingAmountIsEqualOrGreaterThanPlayersPerGroup(round);

            if (round.IsLastRound())
            {
                CheckWhetherLastRoundContainsMoreThanOneGroup(round);
                CheckWhetherLastRoundHasMoreThanOneAdvancingPerGroupCount(round);
            }
        }