@@ -595,9 +595,14 @@ public void DocumentUriRetunsCorrectStringForAbsolutePath()
595
595
scriptFile = new ScriptFile ( path , path , emptyStringReader , PowerShellVersion ) ;
596
596
Assert . Equal ( "file:///c%3A/Users/AmosBurton/projects/Rocinate/ProtoMolecule.ps1" , scriptFile . DocumentUri ) ;
597
597
598
- path = @"c:\Users\BobbyDraper \projects\Rocinate\foo's_~#-[@] +,;=%.ps1" ;
598
+ path = @"c:\Users\BobbieDraper \projects\Rocinate\foo's_~#-[@] +,;=%.ps1" ;
599
599
scriptFile = new ScriptFile ( path , path , emptyStringReader , PowerShellVersion ) ;
600
- Assert . Equal ( "file:///c%3A/Users/BobbyDraper/projects/Rocinate/foo%27s_~%23-%5B%40%5D%20%2B%2C%3B%3D%25.ps1" , scriptFile . DocumentUri ) ;
600
+ Assert . Equal ( "file:///c%3A/Users/BobbieDraper/projects/Rocinate/foo%27s_~%23-%5B%40%5D%20%2B%2C%3B%3D%25.ps1" , scriptFile . DocumentUri ) ;
601
+
602
+ // Test UNC path
603
+ path = @"\\ClarissaMao\projects\Rocinate\foo's_~#-[@] +,;=%.ps1" ;
604
+ scriptFile = new ScriptFile ( path , path , emptyStringReader , PowerShellVersion ) ;
605
+ Assert . Equal ( "file://ClarissaMao/projects/Rocinate/foo%27s_~%23-%5B%40%5D%20%2B%2C%3B%3D%25.ps1" , scriptFile . DocumentUri ) ;
601
606
}
602
607
else
603
608
{
@@ -606,9 +611,9 @@ public void DocumentUriRetunsCorrectStringForAbsolutePath()
606
611
scriptFile = new ScriptFile ( path , path , emptyStringReader , PowerShellVersion ) ;
607
612
Assert . Equal ( "file:///home/AlexKamal/projects/Rocinate/ProtoMolecule.ps1" , scriptFile . DocumentUri ) ;
608
613
609
- path = "/home/BobbyDraper /projects/Rocinate/foo's_~#-[@] +,;=%.ps1" ;
614
+ path = "/home/BobbieDraper /projects/Rocinate/foo's_~#-[@] +,;=%.ps1" ;
610
615
scriptFile = new ScriptFile ( path , path , emptyStringReader , PowerShellVersion ) ;
611
- Assert . Equal ( "file:///home/BobbyDraper /projects/Rocinate/foo%27s_~%23-%5B%40%5D%20%2B%2C%3B%3D%25.ps1" , scriptFile . DocumentUri ) ;
616
+ Assert . Equal ( "file:///home/BobbieDraper /projects/Rocinate/foo%27s_~%23-%5B%40%5D%20%2B%2C%3B%3D%25.ps1" , scriptFile . DocumentUri ) ;
612
617
613
618
path = "/home/NaomiNagata/projects/Rocinate/Proto:Mole:cule.ps1" ;
614
619
scriptFile = new ScriptFile ( path , path , emptyStringReader , PowerShellVersion ) ;
0 commit comments