mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Duplicated root folders are now blocked.
This commit is contained in:
parent
3cb61e4c34
commit
d967d4198c
3 changed files with 21 additions and 15 deletions
|
@ -92,7 +92,6 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
}
|
||||
|
||||
|
||||
|
||||
[Test]
|
||||
public void None_existing_folder_returns_empty_list()
|
||||
{
|
||||
|
@ -123,5 +122,16 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void adding_duplicated_root_folder_should_throw()
|
||||
{
|
||||
WithRealDb();
|
||||
|
||||
//Act
|
||||
var rootDirProvider = Mocker.Resolve<RootDirProvider>();
|
||||
rootDirProvider.Add(new RootDir { Path = @"C:\TV" });
|
||||
Assert.Throws<InvalidOperationException>(() => rootDirProvider.Add(new RootDir { Path = @"C:\TV" }));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue