コード例 #1
0
        public async Task GetMangaStatistics_MonsterId_ShouldParseMonsterStats()
        {
            // When
            var monster = await _jikan.GetMangaStatisticsAsync(1);

            // Then
            using (new AssertionScope())
            {
                monster.Data.ScoreStats.Should().NotBeNull();
                monster.Data.Completed.Should().BeGreaterThan(25000);
                monster.Data.Dropped.Should().BeGreaterThan(500);
                monster.Data.Total.Should().BeGreaterThan(160000);
                monster.Data.ScoreStats.Should().Contain(x => x.Score.Equals(8) && x.Votes > 8500);
            }
        }