Skip to content

Conversation

HarrisonTCodes
Copy link
Contributor

Closes #1350

This PR updates the InvalidUncPath error message to be platform specific, referencing the form \\server\share in Windows environments, and //server/share in other environments.

The method now checks the environment's platform (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) and conditionally returns an IOException with the correctly-formed UNC path in the message, using System.Runtime.InteropServices in the CommonExceptions class.

Copy link
Member

@vbreuss vbreuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vbreuss vbreuss merged commit b62c516 into TestableIO:main Oct 9, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inaccurate/Unhelpful MockFileSystem UNC path error message on Unix-like systems

2 participants