Esempio n. 1
0
 public void HasDownloadedBefore()
 {
     Assert.IsTrue(Builders.GetDownloadsWithTvTorrent().HasDownloadedBefore(Builders.GetTvTorrent()));
     Assert.IsFalse(Builders.GetDownloadsWithTvTorrent().HasDownloadedBefore(Builders.GetMovieTorrent()));
     Assert.IsFalse(Builders.GetEmptyDownloads().HasDownloadedBefore(Builders.GetTvTorrent()));
     Assert.IsFalse(Builders.GetDownloadsWithTvTorrent().HasDownloadedBefore(Builders.GetTvTorrent().GUID("123")));
 }
Esempio n. 2
0
 public void ShouldDownload()
 {
     Assert.IsTrue(Builders.GetMovieFilter().Enabled(true).ShouldDownload(Builders.GetMovieTorrent(), Builders.GetEmptyDownloads()));
     // Not enabled
     Assert.IsFalse(Builders.GetMovieFilter().Enabled(false).ShouldDownload(Builders.GetMovieTorrent(), Builders.GetEmptyDownloads()));
     // Has been downloaded
     Assert.IsFalse(Builders.GetMovieFilter().Enabled(true).ShouldDownload(Builders.GetMovieTorrent(), Builders.GetDownloadsWithMovie()));
     // Not same torrent
     Assert.IsTrue(Builders.GetMovieFilter().Enabled(true).ShouldDownload(Builders.GetMovieTorrent().GUID("123"), Builders.GetDownloadsWithMovie()));
 }