Exemple #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")));
 }
Exemple #2
0
 public void ShouldDownloadEpisode()
 {
     Assert.IsFalse(Builders.GetTvFilter().MatchOnce(true).ShouldDownloadEpisode(Builders.GetTvTorrent(), Builders.GetDownloadsWithTvTorrent()));
     Assert.IsTrue(Builders.GetTvFilter().MatchOnce(false).ShouldDownloadEpisode(Builders.GetTvTorrent(), Builders.GetDownloadsWithTvTorrent()));
     Assert.IsFalse(Builders.GetTvFilter(2, 3).MatchOnce(true).ShouldDownloadEpisode(Builders.GetTvTorrent(2, 2), Builders.GetDownloadsWithTvTorrent(2, 1)));
     Assert.IsTrue(Builders.GetTvFilter(2, 2).MatchOnce(true).ShouldDownloadEpisode(Builders.GetTvTorrent(2, 2), Builders.GetDownloadsWithTvTorrent(2, 1)));
     Assert.IsFalse(Builders.GetTvFilter(2, 2).MatchOnce(true).ShouldDownloadEpisode(Builders.GetTvTorrent(2, 1), Builders.GetDownloadsWithTvTorrent(2, 1)));
     Assert.IsFalse(Builders.GetTvFilter(2, 2).MatchOnce(true).ShouldDownloadEpisode(Builders.GetTvTorrent(2, 2), Builders.GetDownloadsWithTvTorrent(2, 2)));
 }