Skip to content

Commit 4e724f5

Browse files
feat: added path normalization to mock file stream
1 parent 9952eab commit 4e724f5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public MockFileStream(
5555
ThrowIfInvalidModeAccess(mode, access);
5656

5757
this.mockFileDataAccessor = mockFileDataAccessor ?? throw new ArgumentNullException(nameof(mockFileDataAccessor));
58+
path = path.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar).TrimSlashes();
5859
this.path = path;
5960
this.options = options;
6061

0 commit comments

Comments
 (0)