Skip to content

Commit 795891b

Browse files
fix: used explicit GUID call instead of target-typed new for clarity and compatibility
1 parent 543acdb commit 795891b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public NullFileSystemStream() : base(Null, ".", true)
3232

3333
private readonly IMockFileDataAccessor mockFileDataAccessor;
3434
private readonly string path;
35-
private readonly Guid guid = new();
35+
private readonly Guid guid = Guid.NewGuid();
3636
private readonly FileAccess access = FileAccess.ReadWrite;
3737
private readonly FileShare share = FileShare.Read;
3838
private readonly FileOptions options;

0 commit comments

Comments
 (0)