-
Notifications
You must be signed in to change notification settings - Fork 267
Closed
Labels
state: in workIssues that are currently worked onIssues that are currently worked ontype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality
Description
Package Version
2.1.0.256
Repro steps
- Create
MockFileSystem - Create working directory
- Set working directory
- Call
using (var file = fileSystem.File.Create("File.txt")) { }
Expected behavior
File is created in current working directory (which does exist).
Actual behavior
Exception is thrown.
Could not find a part of the path 'File.txt'.
This worked in version 2.0.0.144. I suspect it is due to change for #278 an #286
which assumes an absolute file path rather than a relative one.
.NET Framework version handles both cases, as does
fileSystem.File.WriteAllText("File.txt", null);
Metadata
Metadata
Assignees
Labels
state: in workIssues that are currently worked onIssues that are currently worked ontype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality