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
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
Version 16.0.7 return True
Version 16.0.8 return False
Expected behavior
Property Exist should return True