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); }
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); }
public void IdentifyIsNotSeriesFile() { string file = @"c:\fileMoviefile.avi"; MoveableFileFactory moveFileFactory = new MoveableFileFactory(_parser, SeriesPattern); MoveableFile mf = moveFileFactory.Create(file); Assert.IsFalse(mf.IsSeries); }
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); }