public async Task GetMangaStatistics_MonsterId_ShouldParseMonsterStats()
        {
            MangaStats monster = await jikan.GetMangaStatistics(1);

            Assert.NotNull(monster.ScoreStats);
            Assert.True(monster.Completed > 25000);
            Assert.True(monster.Dropped > 500);
        }
示例#2
0
        public void ShouldParseMonsterStats()
        {
            MangaStats monster = Task.Run(() => jikan.GetMangaStatistics(1)).Result;

            Assert.NotNull(monster.ScoreStats);
            Assert.True(monster.Completed > 25000);
            Assert.True(monster.Dropped > 500);
        }
示例#3
0
        public async Task GetMangaStatistics_MonsterId_ShouldParseMonsterStats()
        {
            // When
            var monster = await _jikan.GetMangaStatistics(1);

            // Then
            using (new AssertionScope())
            {
                monster.ScoreStats.Should().NotBeNull();
                monster.Completed.Should().BeGreaterThan(25000);
                monster.Dropped.Should().BeGreaterThan(500);
            }
        }