Example #1
0
 public void InitiRanking()
 {
     this.leaderboard = new LeaderboardImpl();
     this.leaderboard.AddPlayer("Alex", 2000);
     this.leaderboard.AddPlayer("Marco", 1600);
     this.leaderboard.AddPlayer("Massimo", 1800);
     this.leaderboard.AddPlayer("Franco", 1200);
 }
        public void TestInitLeaderboard()
        {
            this.leaderboard     = new LeaderboardImpl();
            this.testLeaderboard = new Dictionary <string, int>();

            this.leaderboard.AddPlayer("Alex", 1200);
            this.leaderboard.AddPlayer("Marco", 1400);
            this.leaderboard.AddPlayer("Massimo", 1800);

            this.testLeaderboard.Add("Alex", 1200);
            this.testLeaderboard.Add("Marco", 1400);
            this.testLeaderboard.Add("Massimo", 1800);
        }