示例#1
0
        public async Task GetMangaRelationsAsync_MonsterId_ShouldParseMonsterRelations()
        {
            // When
            var monster = await _jikan.GetMangaRelationsAsync(1);

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