コード例 #1
0
        public async Task GetCharacterMangaAsync_SpikeSpiegelId_ShouldParseSpikeSpiegelAnime()
        {
            // When
            var spike = await _jikan.GetCharacterMangaAsync(1);

            // Then
            using (new AssertionScope())
            {
                spike.Data.Should().HaveCount(2);
                spike.Data.Should().OnlyContain(x => x.Role.Equals("Main"));
                spike.Data.Should().OnlyContain(
                    x => !string.IsNullOrWhiteSpace(x.Manga.Images.JPG.ImageUrl) &&
                    !string.IsNullOrWhiteSpace(x.Manga.Images.JPG.SmallImageUrl) &&
                    !string.IsNullOrWhiteSpace(x.Manga.Images.JPG.LargeImageUrl)
                    );
            }
        }