示例#1
0
        public void PeriodFileNameSplits()
        {
            string file = @"c:\file.names.file.avi";

            MoveableFileFactory moveFileFactory = new MoveableFileFactory(_parser, SeriesPattern);
            MoveableFile        mf = moveFileFactory.Create(file);

            Assert.AreEqual(mf.Names.Count(), 3);
        }
示例#2
0
        public void IgnoreFilePartSplit()
        {
            string file = @"c:\file.s00e00.file.avi";

            MoveableFileFactory moveFileFactory = new MoveableFileFactory(_parser, SeriesPattern);
            MoveableFile        mf = moveFileFactory.Create(file);

            Assert.AreEqual(mf.Names.Count(), 2);
        }
示例#3
0
        public void IdentifyIsNotSeriesFile()
        {
            string file = @"c:\fileMoviefile.avi";

            MoveableFileFactory moveFileFactory = new MoveableFileFactory(_parser, SeriesPattern);
            MoveableFile        mf = moveFileFactory.Create(file);

            Assert.IsFalse(mf.IsSeries);
        }
示例#4
0
        public void IgnoreFilePartSplitMany()
        {
            string file = @"c:\file.s00e00.480p.dvdrip.1080p.file.avi";

            _parser.AddExclusions("dvdrip", "\\d{3,4}p");

            MoveableFileFactory moveFileFactory = new MoveableFileFactory(_parser, SeriesPattern);
            MoveableFile        mf = moveFileFactory.Create(file);

            Assert.AreEqual(mf.Names.Count(), 2);
        }