示例#1
0
        public void GetTags_ConfiguredForExtraGenresToTags_ReturnsExcessGenres()
        {
            var series = new AniDbSeriesData().WithStandardData();

            series.Tags = new[]
            {
                new TagData
                {
                    Id     = 55,
                    Weight = 400,
                    Name   = "Tag1"
                },
                new TagData
                {
                    Id     = 46,
                    Weight = 500,
                    Name   = "Tag2"
                }
            };

            var aniDbParser = new AniDbParser();

            var tags = aniDbParser.GetTags(series, 2, true);

            tags.Should().BeEquivalentTo("Tag1");
        }
示例#2
0
        public void GetTags_IgnoresSpecificTags(int id)
        {
            var series = new AniDbSeriesData().WithStandardData();

            series.Tags = new[]
            {
                new TagData
                {
                    Id     = id,
                    Weight = 600,
                    Name   = "Tag1"
                }
            };

            var aniDbParser = new AniDbParser();

            var tags = aniDbParser.GetTags(series, 0, false);

            tags.Should().BeEmpty();
        }