public async Task GetChallengerLeagueAsyncTest() { IRiotClient client = new RiotClient(); var league = await client.GetChallengerLeagueAsync(RankedQueue.RANKED_SOLO_5x5); Assert.That(league, Is.Not.Null); Assert.That(league.Entries.Count, Is.GreaterThan(1)); Assert.That(league.Name, Is.Not.Null.And.Not.Empty); Assert.That(league.Queue, Is.EqualTo(RankedQueue.RANKED_SOLO_5x5)); Assert.That(league.Tier, Is.EqualTo(Tier.CHALLENGER)); }
public async Task GetChallengerLeagueAsyncTest() { IRiotClient client = new RiotClient(); LeagueList league = await client.GetChallengerLeagueAsync(RankedQueue.RANKED_SOLO_5x5); Assert.That(league, Is.Not.Null); Assert.That(league.Entries.Count, Is.GreaterThan(1)); Assert.That(league.Name, Is.Not.Null.And.Not.Empty); Assert.That(league.Queue, Is.EqualTo(RankedQueue.RANKED_SOLO_5x5)); Assert.That(league.Tier, Is.EqualTo(Tier.CHALLENGER)); }