mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-21 21:47:05 +00:00
AsOsAgnostic paths for root folder tests
This commit is contained in:
parent
f56076a135
commit
5e7e816c03
1 changed files with 3 additions and 2 deletions
|
@ -119,8 +119,9 @@ public void should_throw_when_same_path_as_drone_factory()
|
|||
[TestCase(".grab")]
|
||||
public void should_get_root_folder_with_subfolders_excluding_special_sub_folders(string subFolder)
|
||||
{
|
||||
var rootFolderPath = @"C:\Test\TV".AsOsAgnostic();
|
||||
var rootFolder = Builder<RootFolder>.CreateNew()
|
||||
.With(r => r.Path = @"C:\Test\TV")
|
||||
.With(r => r.Path = rootFolderPath)
|
||||
.Build();
|
||||
|
||||
var subFolders = new[]
|
||||
|
@ -131,7 +132,7 @@ public void should_get_root_folder_with_subfolders_excluding_special_sub_folders
|
|||
subFolder
|
||||
};
|
||||
|
||||
var folders = subFolders.Select(f => Path.Combine(@"C:\Test\TV", f)).ToArray();
|
||||
var folders = subFolders.Select(f => Path.Combine(rootFolderPath, f)).ToArray();
|
||||
|
||||
Mocker.GetMock<IRootFolderRepository>()
|
||||
.Setup(s => s.Get(It.IsAny<int>()))
|
||||
|
|
Loading…
Reference in a new issue