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

            RoundBase previousRound = firstRound.GetPreviousRound();

            previousRound.Should().BeNull();
        }
Beispiel #2
0
        public void CanFetchRoundBeforeThisRound()
        {
            RoundBase beforeRound = tournament.AddRoundRobinRound();
            RoundBase thisRound   = tournament.AddRoundRobinRound();

            RoundBase previousRound = thisRound.GetPreviousRound();

            previousRound.Should().Be(beforeRound);
        }