IDirectoryInfoFactory.Wrap loses part of absolute path when used with MockFileSystem #1049
Labels
area: testinghelpers
Issues that address the testing helpers
state: ready to pick
Issues that are ready for being worked on
state: released
Issues that are released
type: bug
Issues that describe misbehaving functionality
Describe the bug
If you provide the MockFileSystem's DirectoryInfo.Wrap method with a DirectoryInfo that has an absolute path, the resulting IDirectoryInfo has the wrong file path.
To Reproduce
Expected behaviour
The test above is expected to pass.
Actual behaviour
Additional context
Tested on Windows 10, .Net 7, System.IO.Abstractions version 19.2.69
The text was updated successfully, but these errors were encountered: