Esempio n. 1
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()));
 }