Esempio n. 1
0
        public void ShouldLimitElo_WhenToMuchPointsAreLost()
        {
            IRankingService rankingService = CreateService;
            float           estimation     = rankingService.GetEstimation(RankingValues.Limit, RankingValues.Limit);

            int newElo = rankingService.GetNewElo(RankingValues.Limit, estimation, false);

            Assert.Equal(RankingValues.Limit, newElo);
        }
Esempio n. 2
0
        public void ShouldComputeNewElo_WhenLost()
        {
            IRankingService rankingService = CreateService;
            float           estimation     = rankingService.GetEstimation(RankingValues.LeftValidValue, RankingValues.RightValidValue);

            int newElo = rankingService.GetNewElo(RankingValues.LeftValidValue, estimation, false);

            Assert.Equal(RankingValues.LeftLostExpectedNewElo, newElo);
        }