public void ShouldConsiderHigherPointsAsHigherPosition() { var stats1 = new TeamStats(team1); var stats2 = new TeamStats(team2); stats1.ApplyResult(A.MatchResult.ForTeams(team1, A.Team.Build()).WithScore(1, 0).Build()); stats2.ApplyResult(A.MatchResult.ForTeams(team2, A.Team.Build()).WithScore(0, 0).Build()); Assert.That(stats1, Is.GreaterThan(stats2)); }
public void ShouldConsiderHigherGoalsScoredAsHigherPositionWhenPointsAndGoalDifferenceAreEqual() { var stats1 = new TeamStats(team1); var stats2 = new TeamStats(team2); stats1.ApplyResult(A.MatchResult.ForTeams(team1, A.Team.Build()).WithScore(1, 2).Build()); stats2.ApplyResult(A.MatchResult.ForTeams(team2, A.Team.Build()).WithScore(2, 3).Build()); Assert.That(stats1, Is.LessThan(stats2)); }