示例#1
0
        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));
        }
示例#2
0
        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));
        }
示例#3
0
        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");
            }
        }