public async Task Summoner_RecentGames() { LoLAPI api = new LoLAPI("9b484226-6040-4e95-bcd1-0a2180ebe72f"); Summoner summoner = await api.SummonerManager.FromNameAsync("GeshZ", eRegion.euw); List<GameDTO> games = await api.GameManager.GetSummonersRecentGamesAsync(summoner); Assert.AreEqual(games.Count, 10); //make sure there are 10 games. }
public async Task Summoner_FromName() { LoLAPI api = new LoLAPI("9b484226-6040-4e95-bcd1-0a2180ebe72f"); Summoner summoner = await api.SummonerManager.FromNameAsync("GeshZ", eRegion.euw); Assert.AreEqual(summoner.Name, "GeshZ"); Assert.AreEqual(summoner.Level, 30); }
public async Task Champion_AllAvailableChampions() { LoLAPI api = new LoLAPI("9b484226-6040-4e95-bcd1-0a2180ebe72f"); List<ChampionDTO> champions = await api.ChampionManager.GetAllChampionsAsync(eRegion.euw); //check for Ziggs, Zed and Ahri. Assert.IsTrue(champions.Where(c => c.name == "Ziggs").FirstOrDefault() != null); Assert.IsTrue(champions.Where(c => c.name == "Zed").FirstOrDefault() != null); Assert.IsTrue(champions.Where(c => c.name == "qAhri").FirstOrDefault() != null); }