示例#1
0
        public void SimpleExclude()
        {
            var fpp = new FilePathProcessor();
            Assert.IsNotNull(fpp);
            fpp.Initialize(null, new []{"Sample"});

            var result = fpp.ProcessFile(@"MyShow\Sample\MyShow S01E10 - something.avi");
            Assert.IsNotNull(result);
            Assert.AreEqual(0, result.VideoIdSet.Count);

        }
示例#2
0
        public void SimpleEnd2End()
        {
            var fpp = new FilePathProcessor();
            Assert.IsNotNull(fpp);
            fpp.Initialize(new[] { @"^(?'show'.*)S\s*(?'season'\d+)\s*E\s*(?'episode'\d+)" }, null);

            var result = fpp.ProcessFile(@"MyShow\Season 1\MyShow S01E10 - something.avi");
            Assert.IsNotNull(result);
            Assert.AreEqual(1,result.VideoIdSet.Count);

            Assert.AreEqual("MyShow",result.VideoIdSet[0].Show);
            Assert.AreEqual(1, result.VideoIdSet[0].Season.GetValueOrDefault());
            Assert.AreEqual(10, result.VideoIdSet[0].Episode.GetValueOrDefault());
        }
示例#3
0
 public void Initialize00()
 {
     var fpp = new FilePathProcessor();
     Assert.IsNotNull(fpp);
     fpp.Initialize(null, null);
 }
示例#4
0
 public void FPPCtor()
 {
     var fpp = new FilePathProcessor();
     Assert.IsNotNull(fpp);
 }