public async Task GetClub_BebopId_ShouldParseCowboyBebopClub() { Club club = await _jikan.GetClub(1); Assert.NotNull(club); Assert.Equal("Anime", club.Category); Assert.Equal("public", club.Type); Assert.Equal(25, club.PicturesCount); Assert.Equal(2, club.MangaRelations.Count); Assert.Equal("Cowboy Bebop", club.AnimeRelations.First().Name); }
public async Task GetClub_BebopId_ShouldParseCowboyBebopClub() { // When var club = await _jikan.GetClub(1); // Then using (new AssertionScope()) { club.Should().NotBeNull(); club.Category.Should().Be("Anime"); club.Type.Should().Be("public"); club.PicturesCount.Should().Be(25); club.MangaRelations.Should().HaveCount(2); club.AnimeRelations.First().Name.Should().Be("Cowboy Bebop"); } }