Skip to content

Commit

Permalink
[MTGOSDK.Tests] Fix League leaderboard test
Browse files Browse the repository at this point in the history
  • Loading branch information
Qonfused committed Jan 27, 2025
1 parent e56aa9f commit 795e0d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MTGOSDK.Tests/src/Tests/MTGOSDK.API/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ public void ValidateLeague(League league)
Assert.That(league.ClosedDate, Is.GreaterThan(league.ActiveDate));
Assert.That(league.CompletedDate, Is.GreaterThanOrEqualTo(league.ClosedDate));
Assert.That(league.JoinedMembers, Is.GreaterThanOrEqualTo(0));
Assert.That(league.Leaderboard.Count, Is.GreaterThanOrEqualTo(league.JoinedMembers));
Assert.That(league.Leaderboard.Count,
league.JoinedMembers > 0 ? Is.GreaterThan(0) : Is.EqualTo(0));
Assert.That(league.TotalMatches, Is.GreaterThanOrEqualTo(3));
Assert.That(league.MinMatches, Is.GreaterThanOrEqualTo(1));
Assert.That((bool?)league.IsPaused, Is.Not.Null);
Expand Down

0 comments on commit 795e0d2

Please sign in to comment.