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); }
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); }