public async void RetrieveTopVideosTest() { List <Video> topVideos = await twixel.RetrieveTopVideos(); Assert.True(topVideos.Count > 0); List <Video> topVideosAllTime = await twixel.RetrieveTopVideos(null, Constants.TwitchConstants.Period.All, 0, 100); Video theOddOne = topVideosAllTime.FirstOrDefault((video) => video.title == "Hotshot gets baited"); Assert.NotNull(theOddOne); }
public async void RetrieveTopVideosTest() { List <Video> topVideos = await twixel.RetrieveTopVideos(false); Assert.True(topVideos.Count > 0); List <Video> topVideosAllTime = await twixel.RetrieveTopVideos(25, "", TwitchConstants.Period.All); Video theOddOne = null; foreach (Video video in topVideosAllTime) { if (video.title == "Hotshot gets baited") { theOddOne = video; break; } } Assert.NotNull(theOddOne); }