public async Task GetAnimeVideos_BebopId_ShouldParseCowboyBebopVideos() { AnimeVideos bebop = await _jikan.GetAnimeVideos(1); Assert.Equal(3, bebop.PromoVideos.Count); Assert.Contains("PV 2", bebop.PromoVideos.Select(x => x.Title)); Assert.Equal(26, bebop.EpisodeVideos.Count); Assert.Contains("Pierrot Le Fou", bebop.EpisodeVideos.Select(x => x.Title)); }
public void ShouldParseCowboyBebopVideos() { AnimeVideos bebop = Task.Run(() => jikan.GetAnimeVideos(1)).Result; Assert.Equal(3, bebop.PromoVideos.Count); Assert.Contains("PV 2", bebop.PromoVideos.Select(x => x.Title)); Assert.Equal(26, bebop.EpisodeVideos.Count); Assert.Contains("Pierrot Le Fou", bebop.EpisodeVideos.Select(x => x.Title)); }
public async Task GetAnimeVideos_BebopId_ShouldParseCowboyBebopVideos() { // When var bebop = await _jikan.GetAnimeVideos(1); // Then using (new AssertionScope()) { bebop.PromoVideos.Should().HaveCount(3); bebop.PromoVideos.Select(x => x.Title).Should().Contain("PV 2"); bebop.EpisodeVideos.Should().HaveCount(26); bebop.EpisodeVideos.Select(x => x.Title).Should().Contain("Pierrot Le Fou"); } }