public void TestNoMatchMovieSearch()
        {
            var downloader = new SubsCenterOrgDownloader();
            var query      = new SearchQuery("batman ends")
            {
                Year = 2015, LanguageCodes = new[] { "eng" }
            };
            var results = downloader.SearchSubtitles(query);

            // make sure there are no resuts
            Assert.IsNotNull(results);
            Assert.IsTrue(results.Count == 0);
        }
        public void TestSeriesSearchWithCleanName()
        {
            var downloader = new SubsCenterOrgDownloader();
            var query      = new EpisodeSearchQuery("The Office (us)", 5, 6, null)
            {
                LanguageCodes = new[] { "heb" }
            };
            var results = downloader.SearchSubtitles(query);

            // make sure there are resuts
            Assert.IsNotNull(results);
            Assert.IsTrue(results.Count > 0);

            // check first result
            var subtitleFiles = downloader.SaveSubtitle(results[0]);

            Assert.AreNotEqual(null, subtitleFiles);
            Assert.AreNotEqual(0, subtitleFiles.Count);
        }
        public void TestExactMovieSearch()
        {
            var downloader = new SubsCenterOrgDownloader();
            var query      = new SearchQuery("batman begins")
            {
                Year = 2005, LanguageCodes = new[] { "heb" }
            };
            var results = downloader.SearchSubtitles(query);

            // make sure there are resuts
            Assert.IsNotNull(results);
            Assert.IsTrue(results.Count > 0);

            // check first result
            var subtitleFiles = downloader.SaveSubtitle(results[10]);

            Assert.AreNotEqual(null, subtitleFiles);
            Assert.AreNotEqual(0, subtitleFiles.Count);
        }
        public void TestSeriesSearchWithCleanNameNoConfFile()
        {
            var downloader = new SubsCenterOrgDownloader();
            var query      = new EpisodeSearchQuery("house", 6, 16, null)
            {
                LanguageCodes = new[] { "heb" }
            };
            var results = downloader.SearchSubtitles(query);

            // todo - after implementing loop over all result pages, this test should work without comments

            // make sure there are resuts
//    Assert.IsNotNull(results);
//    Assert.IsTrue(results.Count > 0);

            // check first result
//    var subtitleFiles = downloader.SaveSubtitle(results[0]);
//    Assert.AreNotEqual(null, subtitleFiles);
//    Assert.AreNotEqual(0, subtitleFiles.Count);
        }