-
Notifications
You must be signed in to change notification settings - Fork 266
Closed
Labels
state: needs discussionIssues that need further discussionIssues that need further discussionstate: releasedIssues that are releasedIssues that are releasedtype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality
Description
Describe the bug
From version 16.0.8 of System.IO.Abstractions.TestingHelpers when I create new file in MockFileSystem property Exist return false.
To Reproduce
IFileSystem fileSystem = new MockFileSystem();
IFileInfo fileInfo = fileSystem.FileInfo.FromFileName("testFile.txt");
using (Stream fs = fileInfo.Create())
{
fs.WriteByte(0);
}
Console.WriteLine($"File exist: {fileInfo.Exists}");Version 16.0.7 return True
Version 16.0.8 return False
Expected behavior
Property Exist should return True
Metadata
Metadata
Assignees
Labels
state: needs discussionIssues that need further discussionIssues that need further discussionstate: releasedIssues that are releasedIssues that are releasedtype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality