mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
AsOsAgnostic paths for root folder tests
This commit is contained in:
@@ -119,8 +119,9 @@ namespace NzbDrone.Core.Test.RootFolderTests
|
|||||||
[TestCase(".grab")]
|
[TestCase(".grab")]
|
||||||
public void should_get_root_folder_with_subfolders_excluding_special_sub_folders(string subFolder)
|
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()
|
var rootFolder = Builder<RootFolder>.CreateNew()
|
||||||
.With(r => r.Path = @"C:\Test\TV")
|
.With(r => r.Path = rootFolderPath)
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
var subFolders = new[]
|
var subFolders = new[]
|
||||||
@@ -131,7 +132,7 @@ namespace NzbDrone.Core.Test.RootFolderTests
|
|||||||
subFolder
|
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>()
|
Mocker.GetMock<IRootFolderRepository>()
|
||||||
.Setup(s => s.Get(It.IsAny<int>()))
|
.Setup(s => s.Get(It.IsAny<int>()))
|
||||||
|
|||||||
Reference in New Issue
Block a user