System.IO.Abstractions icon indicating copy to clipboard operation
System.IO.Abstractions copied to clipboard

MockFileInfo.OpenWrite returns stream with read access.

Open AngusMcIntyre opened this issue 9 years ago • 1 comments

This is not the behaviour I receive when opening a filestream. My unit test passed but the code failed at runtime. I expected OpenWrite() to return a stream with no read access, and to throw the appropriate exception when a read is attempted.

image

AngusMcIntyre avatar Jul 06 '17 11:07 AngusMcIntyre

Thanks for reporting this, @AngusMcIntyre

jpreese avatar Jul 08 '18 13:07 jpreese