mirror of
https://github.com/Radarr/Radarr
synced 2024-12-25 17:27:59 +00:00
Added test for seondaryTargetId being less than 0.
This commit is contained in:
parent
350e0388de
commit
12af491b45
1 changed files with 9 additions and 0 deletions
|
@ -210,6 +210,15 @@ public void start_target_id_less_than_0_throws_exception(int target)
|
||||||
mocker.Resolve<EpisodeSearchJob>().Start(new ProgressNotification("Test"), target, 0);
|
mocker.Resolve<EpisodeSearchJob>().Start(new ProgressNotification("Test"), target, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[TestCase(0)]
|
||||||
|
[TestCase(-1)]
|
||||||
|
[TestCase(-100)]
|
||||||
|
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||||
|
public void start_secondary_target_id_less_than_0_throws_exception(int target)
|
||||||
|
{
|
||||||
|
var mocker = new AutoMoqer(MockBehavior.Strict);
|
||||||
|
mocker.Resolve<SeasonSearchJob>().Start(new ProgressNotification("Test"), 0, target);
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void start_should_search_all_providers()
|
public void start_should_search_all_providers()
|
||||||
|
|
Loading…
Reference in a new issue