public void Opponent_Game_Win_Percentage_Should_Be_One_Third(SwissStatisticsProvider sut, IEnumerable <Round> rounds, Player A, Player B) { var actual = sut .GetOpponentsGameWinPercentage(rounds, A); Assert.Equal(1.0m / 3.0m, actual); }
public void Opponent_Game_Win_Percentage_Should_Be_Four_Ninths(SwissStatisticsProvider sut, IEnumerable <Round> rounds, Player A, Player B) { var actual = sut .GetOpponentsGameWinPercentage(rounds, A); // One win + one draw = 4GP out of 9 possible Assert.Equal(4.0m / 9.0m, actual); }