public async void SearchGamesTest() { List <SearchedGame> searchedGames = await twixel.SearchGames("League", true); SearchedGame league = searchedGames.FirstOrDefault((game) => game.name == "League of Legends"); Assert.NotNull(league); }
public async void SearchGamesTest() { List <SearchedGame> searchedGames = await twixel.SearchGames("League", true); SearchedGame league = null; foreach (SearchedGame game in searchedGames) { if (game.name == "League of Legends") { league = game; break; } } Assert.NotNull(league); }