public async Task Return_Correct_Leagues(Region region, Queue queue, Tier tier, Division division) { IEnumerable <LeagueEntry> leagues = await RiotAPI.Leagues.GetAllLeagues(region, queue, tier, division); Check.That(leagues).IsNotNull(); Check.That(leagues).IsNotEmpty(); Check.That(leagues).ContainsOnlyElementsThatMatch(x => x.QueueType == queue); }
public async Task Return_Master_League(Region region, Queue queue) { League league = await RiotAPI.Leagues.GetMasterLeague(region, queue); Check.That(league).IsNotNull(); }