mirror of
https://github.com/Sonarr/Sonarr
synced 2025-01-03 21:56:06 +00:00
Fix unit test
This commit is contained in:
parent
9d93fc1092
commit
413dd51db1
1 changed files with 8 additions and 7 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue