Exemple #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 = ExtraResolver.GetExtraInfo("extra.mp4", options);

            Assert.Equal(rule, res.Rule);
        }
Exemple #2
0
        private void Test(string input, ExtraType?expectedType)
        {
            var extraType = ExtraResolver.GetExtraInfo(input, _videoOptions).ExtraType;

            Assert.Equal(expectedType, extraType);
        }