mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Adding series with a ID of 0 is now blocked.
This commit is contained in:
parent
70dcacb41b
commit
e8e0e8e5dc
3 changed files with 15 additions and 1 deletions
|
@ -46,6 +46,15 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
series.First().SeasonFolder.Should().Be(useSeasonFolder);
|
||||
}
|
||||
|
||||
|
||||
[TestCase(0)]
|
||||
[TestCase(-1)]
|
||||
public void add_series_should_fail_if_series_is_less_than_zero(int seriesId)
|
||||
{
|
||||
WithRealDb();
|
||||
Assert.Throws<ArgumentOutOfRangeException>(() => Mocker.Resolve<SeriesProvider>().AddSeries("C:\\Test", seriesId, 1));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void find_series_empty_repo()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue