예제 #1
0
        public async Task GetAnimeRecommendation_BebopId_ShouldParseCowboyBebopRecommendations()
        {
            Recommendations bebop = await _jikan.GetAnimeRecommendations(1);

            //Samurai Champloo
            Assert.Equal(205, bebop.RecommendationCollection.First().MalId);
            Assert.True(bebop.RecommendationCollection.First().RecommendationCount > 70);
            Assert.True(bebop.RecommendationCollection.Count > 100);
        }
예제 #2
0
        public async Task GetAnimeRecommendation_BebopId_ShouldParseCowboyBebopRecommendations()
        {
            // When
            var bebop = await _jikan.GetAnimeRecommendations(1);

            // Then
            using (new AssertionScope())
            {
                bebop.RecommendationCollection.First().MalId.Should().Be(205);                 // Samurai Champloo
                bebop.RecommendationCollection.First().RecommendationCount.Should().BeGreaterThan(70);
                bebop.RecommendationCollection.Count.Should().BeGreaterThan(100);
            }
        }