Exemple #1
0
        public void SyncRequestScoresTest()
        {
            // Test that requesting scores work properly
            ScoresResponse r = lb.RequestScores(uniqueLevelName);

            // Confirm the server returns at least 1 score
            Assert.GreaterOrEqual(r.leaders.Length, 1);
        }
Exemple #2
0
 public void SyncInvalidServerHost()
 {
     // Test that if the server host is invalid, an exception is thrown
     lb = new Leaderboards("gibberish" + Guid.NewGuid(), 2693);
     lb.RequestScores(uniqueLevelName);
 }
Exemple #3
0
 public void SyncUnableToConnectToServer()
 {
     // Test that if the server is unreachable, an exception is thrown
     lb = new Leaderboards("localhost", 9999);
     lb.RequestScores(uniqueLevelName);
 }
Exemple #4
0
 public void SyncInvalidServerPort()
 {
     // Test that if the server port is invalid, an exception is thrown
     lb = new Leaderboards("localhost", -1);
     lb.RequestScores(uniqueLevelName);
 }