Beispiel #1
0
        public async Task GetAnimeStatistics_BebopId_ShouldParseCowboyBebopStats()
        {
            AnimeStats bebop = await _jikan.GetAnimeStatistics(1);

            Assert.NotNull(bebop.ScoreStats);
            Assert.True(bebop.Completed > 450000);
            Assert.True(bebop.PlanToWatch > 50000);
            Assert.True(bebop.ScoreStats._5.Votes > 5000);
        }
Beispiel #2
0
        public void ShouldParseCowboyBebopStats()
        {
            AnimeStats bebop = Task.Run(() => jikan.GetAnimeStatistics(1)).Result;

            Assert.NotNull(bebop.ScoreStats);
            Assert.True(bebop.Completed > 450000);
            Assert.True(bebop.PlanToWatch > 50000);
            Assert.True(bebop.ScoreStats._5.Votes > 5000);
        }
Beispiel #3
0
        public async Task GetAnimeStatistics_BebopId_ShouldParseCowboyBebopStats()
        {
            // When
            var bebop = await _jikan.GetAnimeStatistics(1);

            // Then
            using (new AssertionScope())
            {
                bebop.ScoreStats.Should().NotBeNull();
                bebop.Completed.Should().BeGreaterThan(450000);
                bebop.PlanToWatch.Should().BeGreaterThan(50000);
                bebop.ScoreStats._5.Votes.Should().BeGreaterThan(5000);
            }
        }