public void RespondsWithCompactGlobalLeaderboard() { var responses = Module.GlobalLeaderboardCompact("", "00"); var compact = responses.ToCompact(); var leaderboard = LeaderboardMock.Read(); foreach (var entry in leaderboard) { Assert.IsTrue( compact.Any( x => x.Contains(entry.Fish.Name) && x.Contains(entry.Length.ToString()) && x.Contains(entry.Weight.ToString()) && x.Contains(UserLookup.GetUsername(entry.UserId)) ) ); } }
public void GetsLeaderboard() { var retrieved = System.GetLeaderboard(); Assert.AreEqual(LeaderboardMock.Read(), retrieved); }