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); }
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); }
public void SyncUnableToConnectToServer() { // Test that if the server is unreachable, an exception is thrown lb = new Leaderboards("localhost", 9999); lb.RequestScores(uniqueLevelName); }
public void SyncInvalidServerPort() { // Test that if the server port is invalid, an exception is thrown lb = new Leaderboards("localhost", -1); lb.RequestScores(uniqueLevelName); }