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"))); }
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())); }
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())); }
public void TwoIdenticalTorrentsShouldNotEqual() { Assert.AreNotEqual(Builders.GetMovieTorrent(), Builders.GetMovieTorrent()); }
public void TwoIdenticalTorrentsShouldBeSameAs() { Assert.IsTrue(Builders.GetMovieTorrent().SameAs(Builders.GetMovieTorrent())); }
public void IsTvShow() { Assert.IsTrue(Builders.GetTvTorrent(1, 1).IsTvShow()); Assert.IsFalse(Builders.GetMovieTorrent().IsTvShow()); }