public void TEST_FILES_WITH_MULTIPLE_DISCS_APPEAR_TO_FAIL()
        {
            MyMoviesImporter importer = new MyMoviesImporter();
            importer.ProcessDir(@"..\..\..\Sample Files\MyMoviesTestFiles\MultiDisk Issues");

            IList<OMLSDKTitle> titles = importer.GetTitles();

            Assert.AreEqual(1, titles.Count);
        }
        public void TEST_FILE_APPEARS_TO_FAIL_COMPLETE_PARSING__SUPPLIED_BY_USER_SAXNIX()
        {
            MyMoviesImporter importer = new MyMoviesImporter();
            importer.ProcessDir(@"..\..\..\Sample Files\MyMoviesTestFiles\ParseFailureFileFrom-saxnix");

            IList<OMLSDKTitle> titles = importer.GetTitles();

            Assert.AreEqual(1, titles.Count);
            OMLSDKTitle t = titles[0];
            Assert.AreEqual(1, t.Disks.Count);
        }
        public void TEST_FOLDER_JPG_FILES_ARE_USED_IF_COVER_PATHS_DONT_APPEAR_TO_EXIST()
        {
            MyMoviesImporter importer = new MyMoviesImporter();
            importer.ProcessDir(@"..\..\..\Sample Files\MyMoviesTestFiles\TestNestedDirectory\dir1");

            IList<OMLSDKTitle> titles = importer.GetTitles();
            Assert.AreEqual(4, titles.Count);

            Assert.IsNotNull(titles[0].FrontCoverPath);
            string imagePath = titles[0].FrontCoverPath;
            Assert.IsTrue(File.Exists(imagePath));
            Assert.IsTrue(imagePath.EndsWith("folder.jpg", StringComparison.CurrentCultureIgnoreCase));
        }
        public void TEST_WHEN_GIVEN_A_FOLDER_SCAN_EACH_FOLDER_LOOKING_FOR_MYMOVIES_XML_FILES()
        {
            MyMoviesImporter importer = new MyMoviesImporter();
            importer.ProcessDir(@"..\..\..\Sample Files\MyMoviesTestFiles\TestNestedDirectory");

            IList<OMLSDKTitle> titles = importer.GetTitles();
            Assert.AreEqual(8, titles.Count);
        }