Ejemplo n.º 1
0
        public void GenerateResultTest_MultipleRoundsPartialRound_2_5()
        {
            var trs = new RrTRS(2.5);
            MatchStrategy matchStrategy = new SimpleRandomMs();
            var competitors = Helpers.CompetitorListHelper.GetStandardCompetitors(6);

            var ranks = trs.GenerateResult(matchStrategy, competitors);

            Assert.AreEqual(36, trs.Matches.Count);
        }
Ejemplo n.º 2
0
        public void GenerateResultTest_MultipleRoundsPartialRoundNonRandomMatches()
        {
            var trs = new RrTRS(2.5);
            MatchStrategy matchStrategy = new NonRandomMs();
            var competitors = Helpers.CompetitorListHelper.GetStandardCompetitors(6);

            var ranks = trs.GenerateResult(matchStrategy, competitors);

            Assert.AreEqual(36, trs.Matches.Count);

            Assert.AreEqual(1, ranks[competitors[0]]);
            Assert.AreEqual(2, ranks[competitors[1]]);
            Assert.AreEqual(3, ranks[competitors[2]]);
            Assert.AreEqual(4, ranks[competitors[3]]);
            Assert.AreEqual(5, ranks[competitors[4]]);
            Assert.AreEqual(6, ranks[competitors[5]]);
        }