1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-01-03 21:56:06 +00:00

Fix unit test

This commit is contained in:
Mark McDowall 2017-05-02 22:06:18 -07:00
parent 9d93fc1092
commit 413dd51db1
No known key found for this signature in database
GPG key ID: D4CEFA9A718052E0

View file

@ -91,16 +91,17 @@ namespace NzbDrone.Core.Test.MediaFiles.EpisodeImport
[Test]
public void should_call_all_specifications()
{
var downloadClientItem = Builder<DownloadClientItem>.CreateNew().Build();
GivenSpecifications(_pass1, _pass2, _pass3, _fail1, _fail2, _fail3);
Subject.GetImportDecisions(_videoFiles, new Series(), new DownloadClientItem(), null, false);
Subject.GetImportDecisions(_videoFiles, new Series(), downloadClientItem, null, false);
_fail1.Verify(c => c.IsSatisfiedBy(_localEpisode, null), Times.Once());
_fail2.Verify(c => c.IsSatisfiedBy(_localEpisode, null), Times.Once());
_fail3.Verify(c => c.IsSatisfiedBy(_localEpisode, null), Times.Once());
_pass1.Verify(c => c.IsSatisfiedBy(_localEpisode, null), Times.Once());
_pass2.Verify(c => c.IsSatisfiedBy(_localEpisode, null), Times.Once());
_pass3.Verify(c => c.IsSatisfiedBy(_localEpisode, null), Times.Once());
_fail1.Verify(c => c.IsSatisfiedBy(_localEpisode, downloadClientItem), Times.Once());
_fail2.Verify(c => c.IsSatisfiedBy(_localEpisode, downloadClientItem), Times.Once());
_fail3.Verify(c => c.IsSatisfiedBy(_localEpisode, downloadClientItem), Times.Once());
_pass1.Verify(c => c.IsSatisfiedBy(_localEpisode, downloadClientItem), Times.Once());
_pass2.Verify(c => c.IsSatisfiedBy(_localEpisode, downloadClientItem), Times.Once());
_pass3.Verify(c => c.IsSatisfiedBy(_localEpisode, downloadClientItem), Times.Once());
}
[Test]