public async Task GetMangaGenre_ActionGenreId_ShouldParseMangaActionGenre() { MangaGenre genre = await _jikan.GetMangaGenre(1); Assert.NotNull(genre); Assert.True(genre.TotalCount > 6000); Assert.Equal("Action Manga", genre.Metadata.Name); Assert.Equal("Shingeki no Kyojin", genre.Manga.First().Title); }
public void ShouldParseMangaActionGenre() { MangaGenre genre = Task.Run(() => jikan.GetMangaGenre(1)).Result; Assert.NotNull(genre); Assert.True(genre.TotalCount > 6000); Assert.Equal("Action Manga", genre.Metadata.Name); Assert.Equal("Naruto", genre.Manga.First().Title); }
public async Task GetMangaGenre_ActionGenreId_ShouldParseMangaActionGenre() { // When var genre = await _jikan.GetMangaGenre(1); // Then using (new AssertionScope()) { genre.Should().NotBeNull(); genre.TotalCount.Should().BeGreaterThan(6000); genre.Metadata.Name.Should().Be("Action Manga"); genre.Manga.First().Title.Should().Be("Shingeki no Kyojin"); } }