示例#1
0
        public async Task GetAnimeGenre_ActionGenreId_ShouldParseAnimeActionGenreMetadata()
        {
            AnimeGenre genre = await _jikan.GetAnimeGenre(1);

            Assert.NotNull(genre);
            Assert.True(genre.TotalCount > 3300);
            Assert.Equal("Action Anime", genre.Metadata.Name);
            Assert.Equal(genre.Metadata.MalId, genre.MalId);
        }
示例#2
0
        public void ShouldParseAnimeActionGenreMetadata()
        {
            AnimeGenre genre = Task.Run(() => jikan.GetAnimeGenre(1)).Result;

            Assert.NotNull(genre);
            Assert.True(genre.TotalCount > 3300);
            Assert.Equal("Action Anime", genre.Metadata.Name);
            Assert.Equal(genre.Metadata.MalId, genre.MalId);
        }
示例#3
0
        public async Task GetAnimeGenre_ActionGenreId_ShouldParseAnimeActionGenreMetadata()
        {
            // When
            var genre = await _jikan.GetAnimeGenre(1);

            // Then
            using (new AssertionScope())
            {
                genre.Should().NotBeNull();
                genre.TotalCount.Should().BeGreaterThan(3300);
                genre.Metadata.Name.Should().Be("Action Anime");
                genre.Metadata.MalId.Should().Be(genre.MalId);
            }
        }