diff --git a/src/System.IO.Abstractions.TestingHelpers/MockFile.cs b/src/System.IO.Abstractions.TestingHelpers/MockFile.cs index 3255fa2e4..c519439ba 100644 --- a/src/System.IO.Abstractions.TestingHelpers/MockFile.cs +++ b/src/System.IO.Abstractions.TestingHelpers/MockFile.cs @@ -380,13 +380,12 @@ public override Stream Open(string path, FileMode mode, FileAccess access) } public override Stream Open(string path, FileMode mode, FileAccess access, FileShare share) => - OpenInternal(path, mode, access, share, FileOptions.None); + OpenInternal(path, mode, access, FileOptions.None); private Stream OpenInternal( string path, FileMode mode, FileAccess access, - FileShare share, FileOptions options) { mockFileDataAccessor.PathVerifier.IsLegalAbsoluteOrRelative(path, "path"); @@ -434,7 +433,7 @@ public override StreamReader OpenText(string path) private Stream OpenWriteInternal(string path, FileOptions options) { mockFileDataAccessor.PathVerifier.IsLegalAbsoluteOrRelative(path, "path"); - return OpenInternal(path, FileMode.OpenOrCreate, FileAccess.Write, FileShare.None, options); + return OpenInternal(path, FileMode.OpenOrCreate, FileAccess.Write, options); } public override byte[] ReadAllBytes(string path)