-
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 helpersflag: good-first-issueIssues that are good for first time contributorsIssues that are good for first time contributorsstate: ready to pickIssues that are ready for being worked onIssues that are ready for being worked ontype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality
Description
Describe the bug
MockFile.ReadAllText throws NullReferenceException on non existing file. I expect FileNotFoundException
To Reproduce
var fileSystem = new MockFileSystem();
fileSystem.File.ReadAllText("nonexisting file", Encoding.UTF8);
--> A NullReferenceException is thrown
Expected behavior
--> A FileNotFoundException is thrown
Metadata
Metadata
Assignees
Labels
area: testinghelpersIssues that address the testing helpersIssues that address the testing helpersflag: good-first-issueIssues that are good for first time contributorsIssues that are good for first time contributorsstate: ready to pickIssues that are ready for being worked onIssues that are ready for being worked ontype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality