-
Notifications
You must be signed in to change notification settings - Fork 267
Closed
Labels
area: testinghelpersIssues that address the testing helpersIssues that address the testing helpersstate: releasedIssues that are releasedIssues that are releasedtype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality
Description
MockFileStream, when returned as a result of a MockFileSystem.File.Create(string path) call, incorrectly has CanRead set to false.
This is different than System.IO.File.Create(string path), which correctly sets CanRead to true.
CanRead being false, can result in problems when used with code that expects true, for example, new BinaryReader(Stream stream), which checks the CanRead property in it's ctor, and throws when not true.
Metadata
Metadata
Assignees
Labels
area: testinghelpersIssues that address the testing helpersIssues that address the testing helpersstate: releasedIssues that are releasedIssues that are releasedtype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality