Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }