コード例 #1
0
        public async Task GetMangaRecommendation_BerserkId_ShouldParseBerserkRecommendations()
        {
            Recommendations berserk = await jikan.GetMangaRecommendations(2);

            //Claymore
            Assert.Equal(583, berserk.RecommendationCollection.First().MalId);
            Assert.True(berserk.RecommendationCollection.First().RecommendationCount > 25);
            Assert.True(berserk.RecommendationCollection.Count > 90);
        }
コード例 #2
0
ファイル: MangaExtendedTests.cs プロジェクト: N0D4N/jikan.net
        public async Task GetMangaRecommendation_BerserkId_ShouldParseBerserkRecommendations()
        {
            // When
            var berserk = await _jikan.GetMangaRecommendations(2);

            // Then
            using (new AssertionScope())
            {
                //Claymore
                berserk.RecommendationCollection.First().MalId.Should().Be(583);
                berserk.RecommendationCollection.First().RecommendationCount.Should().BeGreaterThan(25);
                berserk.RecommendationCollection.Count.Should().BeGreaterThan(90);
            }
        }