-
Notifications
You must be signed in to change notification settings - Fork 266
Open
Labels
area: testinghelpersIssues that address the testing helpersIssues that address the testing helpersstate: 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
GetDrives on mac returns a DriveInfo.Name "/:\" -- the colon and backslashes is not expected
To Reproduce
Steps to reproduce the behavior:
In latest dotnet core on mac, something like this-
var fs = new MockFileSystem();
fs.AddFile("/Users/User/Downloads/file.txt", new MockFileData(""));
var drives = fs.DriveInfo.GetDrives().ToArray();
Assert.Equal("/", drives[0].Name);
Expected behavior
Drive names on mac are usually something like "/", "/Volumes/NO NAME", "/Volumes/AMD" without colons.
Additional context
Also, Is there any workaround where I can define the DriveInfos in a MockFileSystem? Or do I have to create Nodes from which MFS derives the DriveInfos?
Metadata
Metadata
Assignees
Labels
area: testinghelpersIssues that address the testing helpersIssues that address the testing helpersstate: 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