File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/TestableIO.System.IO.Abstractions.TestingHelpers Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11using System . Globalization ;
2+ using System . Runtime . InteropServices ;
23
34namespace System . IO . Abstractions . TestingHelpers ;
45
@@ -55,7 +56,9 @@ public static ArgumentException IllegalCharactersInPath(string paramName = null)
5556 : new ArgumentException ( StringResources . Manager . GetString ( "ILLEGAL_CHARACTERS_IN_PATH_EXCEPTION" ) ) ;
5657
5758 public static ArgumentException InvalidUncPath ( string paramName ) =>
58- new ArgumentException ( @"The UNC path should be of the form \\server\share." , paramName ) ;
59+ RuntimeInformation . IsOSPlatform ( OSPlatform . Windows )
60+ ? new ArgumentException ( @"The UNC path should be of the form \\server\share." , paramName )
61+ : new ArgumentException ( @"The UNC path should be of the form //server/share." , paramName ) ;
5962
6063 public static IOException ProcessCannotAccessFileInUse ( string paramName = null ) =>
6164 paramName != null
You can’t perform that action at this time.
0 commit comments