Beispiel #1
0
        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))
                        )
                    );
            }
        }
Beispiel #2
0
        public void GetsLeaderboard()
        {
            var retrieved = System.GetLeaderboard();

            Assert.AreEqual(LeaderboardMock.Read(), retrieved);
        }