public async Task GetMangaReviews_BerserkId_ShouldParseBerserkReviews()
        {
            MangaReviews berserk = await jikan.GetMangaReviews(2);

            Assert.Equal("TheCriticsClub", berserk.Reviews.First().Reviewer.Username);
            Assert.Equal(4403, berserk.Reviews.First().MalId);
            Assert.True(berserk.Reviews.First().HelpfulCount > 1200);

            Assert.Equal(10, berserk.Reviews.First().Reviewer.Scores.Overall);
            Assert.Equal(9, berserk.Reviews.First().Reviewer.Scores.Story);
        }
示例#2
0
        public async Task GetMangaReviews_BerserkId_ShouldParseBerserkReviews()
        {
            // When
            var berserk = await _jikan.GetMangaReviews(2);

            // Then
            using (new AssertionScope())
            {
                berserk.Reviews.First().Reviewer.Username.Should().Be("TheCriticsClub");
                berserk.Reviews.First().MalId.Should().Be(4403);
                berserk.Reviews.First().HelpfulCount.Should().BeGreaterThan(1200);

                berserk.Reviews.First().Reviewer.Scores.Overall.Should().Be(10);
                berserk.Reviews.First().Reviewer.Scores.Story.Should().Be(9);
            }
        }