public void ValidRegion_ReturnsCorrectRegionLeaderboard(DotaRegion region) { var response = DotaApiClient.GetLeaderboardAsync(region) .Result; SleepAfterSendingRequest(); AssertRequestWasSuccessful(response); Assert.NotNull(response.Contents); Assert.NotEmpty(response.Contents.Players); }
string BuildRegion(uint numPlayers, int index) { DotaRegion region = (DotaRegion)index; return(string.Format("{0}: {1}", region, numPlayers)); }
string BuildServers(CMsgSockAddrList addrList, int index) { DotaRegion region = (DotaRegion)index; return(string.Format("{0}: {1}", region, addrList.ip.Count)); }