diff --git a/src/NzbDrone.Common.Test/DiskTests/DiskTransferServiceFixture.cs b/src/NzbDrone.Common.Test/DiskTests/DiskTransferServiceFixture.cs index fb673ef60..111698af2 100644 --- a/src/NzbDrone.Common.Test/DiskTests/DiskTransferServiceFixture.cs +++ b/src/NzbDrone.Common.Test/DiskTests/DiskTransferServiceFixture.cs @@ -586,17 +586,12 @@ public void TransferFile_should_find_files_with_multiple_slashes_within_their_pa var root = GetFilledTempFolder(); var rootDir = root.FullName; - var fromFileName = "source-file"; - var from = Path.Combine(rootDir, fromFileName); + var from = rootDir + Path.DirectorySeparatorChar + Path.DirectorySeparatorChar + "source-file"; var to = Path.Combine(rootDir, "destination-file"); - var oneSlash = new string(Path.DirectorySeparatorChar, 1); - var threeSlashes = new string(Path.DirectorySeparatorChar, 3); - var overSlashed = Path.Combine(rootDir.Replace(oneSlash, threeSlashes), fromFileName); - File.WriteAllText(from, "Source file"); - var mode = Subject.TransferFile(overSlashed, to, TransferMode.Copy); + var mode = Subject.TransferFile(from, to, TransferMode.Copy); mode.Should().Be(TransferMode.Copy); ExceptionVerification.ExpectedWarns(1);