示例#1
0
        public async Task GetAnimeRelationsAsync_BebopId_ShouldParseCowboyBebopRelations()
        {
            // When
            var bebop = await _jikan.GetAnimeRelationsAsync(1);

            // Then
            using var _ = new AssertionScope();
            bebop.Data.Should().HaveCount(3);
            bebop.Data.Should().ContainSingle(x => x.Relation.Equals("Adaptation") && x.Entry.Count == 2);
            bebop.Data.Should().ContainSingle(x => x.Relation.Equals("Side story") && x.Entry.Count == 2);
            bebop.Data.Should().ContainSingle(x => x.Relation.Equals("Summary") && x.Entry.Count == 1);
        }