IFileInfo.OpenRead() does not lock file when using MockFileSystem #894
Labels
area: testinghelpers
Issues that address the testing helpers
state: ready to pick
Issues that are ready for being worked on
type: bug
Issues that describe misbehaving functionality
Describe the bug
If you want to test if a file handle is released correctly after calling IFileInfo.OpenRead() the test does not fail when using MockFileSystem.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
MockFileSystem should behave like the real FileSystem so that the test fails
Additional context
I am working on Windows 10
Versions:
System.IO.Abstractions = 17.2.3
The text was updated successfully, but these errors were encountered: