Exemplo n.º 1
0
        public void TestExtraInfo_InvalidRuleType()
        {
            var rule    = new ExtraRule(ExtraType.Unknown, ExtraRuleType.Regex, @"([eE]x(tra)?\.\w+)", MediaType.Video);
            var options = new NamingOptions {
                VideoExtraRules = new[] { rule }
            };
            var res = ExtraRuleResolver.GetExtraInfo("extra.mp4", options);

            Assert.Equal(rule, res.Rule);
        }
Exemplo n.º 2
0
        private void Test(string input, ExtraType?expectedType)
        {
            var extraType = ExtraRuleResolver.GetExtraInfo(input, _videoOptions).ExtraType;

            Assert.Equal(expectedType, extraType);
        }