Describe the bug
When creating a filestream using FileAccess.Write:
_fileSystem.FileStream.Create(filePath, FileMode.CreateNew, System.IO.FileAccess.Write);
during unit testing, the property CanRead for this stream returns true, when it should be false
To Reproduce
Steps to reproduce the behavior:
use mockfilesystem, and create a file stream using:
_fileSystem.FileStream.Create(filePath, FileMode.CreateNew, System.IO.FileAccess.Write);
Expected behavior
CanRead property of the created stream returns false
Describe the bug
When creating a filestream using FileAccess.Write:
_fileSystem.FileStream.Create(filePath, FileMode.CreateNew, System.IO.FileAccess.Write);during unit testing, the property
CanReadfor this stream returnstrue, when it should befalseTo Reproduce
Steps to reproduce the behavior:
use mockfilesystem, and create a file stream using:
_fileSystem.FileStream.Create(filePath, FileMode.CreateNew, System.IO.FileAccess.Write);Expected behavior
CanReadproperty of the created stream returnsfalse