From 5e7e816c0315bc51c3575740ea17ee53655ae3ca Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 20 Jan 2017 09:02:36 -0800 Subject: [PATCH] AsOsAgnostic paths for root folder tests --- .../RootFolderTests/RootFolderServiceFixture.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core.Test/RootFolderTests/RootFolderServiceFixture.cs b/src/NzbDrone.Core.Test/RootFolderTests/RootFolderServiceFixture.cs index c325f307a..1f09c26d0 100644 --- a/src/NzbDrone.Core.Test/RootFolderTests/RootFolderServiceFixture.cs +++ b/src/NzbDrone.Core.Test/RootFolderTests/RootFolderServiceFixture.cs @@ -119,8 +119,9 @@ namespace NzbDrone.Core.Test.RootFolderTests [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.CreateNew() - .With(r => r.Path = @"C:\Test\TV") + .With(r => r.Path = rootFolderPath) .Build(); var subFolders = new[] @@ -131,7 +132,7 @@ namespace NzbDrone.Core.Test.RootFolderTests 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() .Setup(s => s.Get(It.IsAny()))