예제 #1
0
        public void TestAllNumbers()
        {
            var testCandidates = Directory.GetFiles(".//Output//DL//", "Computeractive UK Issue 438 - December 10, 2014.pdf", SearchOption.AllDirectories).ToList();

             foreach (var item in testCandidates)
             {
            var mi = new MediaInfo(item);
            Assert.IsTrue(mi.ContainsAllNumbers("438"));
            Assert.IsTrue(mi.ContainsAllNumbers("408"));
            Assert.IsFalse(mi.ContainsAllNumbers("mp4"));
            Assert.IsFalse(mi.ContainsAllNumbers("m4o"));
            Assert.IsFalse(mi.ContainsAllNumbers("4pm"));
            Assert.IsFalse(mi.ContainsAllNumbers("4p4"));
             }
        }