Example #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")));
 }
Example #2
0
 public void TitleMatching()
 {
     Assert.IsTrue(Builders.GetMovieFilter().TitleMatches(Builders.GetMovieTorrent()));
     Assert.IsFalse(Builders.GetMovieFilter().Exclude("720p").TitleMatches(Builders.GetMovieTorrent()));
     Assert.IsFalse(Builders.GetMovieFilter().Include("1080p;hdtv").TitleMatches(Builders.GetMovieTorrent()));
     Assert.IsFalse(Builders.GetMovieFilter().IgnoreCaps(false).TitleMatches(Builders.GetMovieTorrent()));
     Assert.IsFalse(Builders.GetMovieFilter().TorrentNameFilter("").TitleMatches(Builders.GetMovieTorrent()));
 }
Example #3
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()));
 }
Example #4
0
 public void TwoIdenticalTorrentsShouldNotEqual()
 {
     Assert.AreNotEqual(Builders.GetMovieTorrent(), Builders.GetMovieTorrent());
 }
Example #5
0
 public void TwoIdenticalTorrentsShouldBeSameAs()
 {
     Assert.IsTrue(Builders.GetMovieTorrent().SameAs(Builders.GetMovieTorrent()));
 }
Example #6
0
 public void IsTvShow()
 {
     Assert.IsTrue(Builders.GetTvTorrent(1, 1).IsTvShow());
     Assert.IsFalse(Builders.GetMovieTorrent().IsTvShow());
 }