@@ -387,6 +387,26 @@ if (process.platform === "win32") {
387
387
} ,
388
388
} ,
389
389
} ,
390
+ {
391
+ name : "Windows (dotnet)" ,
392
+ platformDetails : {
393
+ operatingSystem : platform . OperatingSystem . Windows ,
394
+ isOS64Bit : true ,
395
+ isProcess64Bit : true ,
396
+ } ,
397
+ environmentVars : {
398
+ "USERNAME" : "test" ,
399
+ "USERPROFILE" : "C:\\Users\\test" ,
400
+ } ,
401
+ expectedPowerShellSequence : [
402
+ { exePath : "C:\\Users\\test\\tools\\pwsh.exe" , displayName : ".NET Core PowerShell Global Tool" , supportsProperArguments : false } ,
403
+ ] ,
404
+ filesystem : {
405
+ "C:\\Users\\test\\tools" : {
406
+ "pwsh.exe" : "" ,
407
+ } ,
408
+ } ,
409
+ } ,
390
410
] ;
391
411
} else {
392
412
successTestCases = [
@@ -480,6 +500,46 @@ if (process.platform === "win32") {
480
500
} ,
481
501
} ,
482
502
} ,
503
+ {
504
+ name : "MacOS (dotnet)" ,
505
+ platformDetails : {
506
+ operatingSystem : platform . OperatingSystem . MacOS ,
507
+ isOS64Bit : true ,
508
+ isProcess64Bit : true ,
509
+ } ,
510
+ environmentVars : {
511
+ "USER" : "test" ,
512
+ "HOME" : "/Users/test" ,
513
+ } ,
514
+ expectedPowerShellSequence : [
515
+ { exePath : "/Users/test/.dotnet/tools/pwsh" , displayName : ".NET Core PowerShell Global Tool" , supportsProperArguments : false } ,
516
+ ] ,
517
+ filesystem : {
518
+ "/Users/test/.dotnet/tools" : {
519
+ pwsh : "" ,
520
+ } ,
521
+ } ,
522
+ } ,
523
+ {
524
+ name : "Linux (dotnet)" ,
525
+ platformDetails : {
526
+ operatingSystem : platform . OperatingSystem . Linux ,
527
+ isOS64Bit : true ,
528
+ isProcess64Bit : true ,
529
+ } ,
530
+ environmentVars : {
531
+ "USER" : "test" ,
532
+ "HOME" : "/home/test" ,
533
+ } ,
534
+ expectedPowerShellSequence : [
535
+ { exePath : "/home/test/.dotnet/tools/pwsh" , displayName : ".NET Core PowerShell Global Tool" , supportsProperArguments : false } ,
536
+ ] ,
537
+ filesystem : {
538
+ "/home/test/.dotnet/tools" : {
539
+ pwsh : "" ,
540
+ } ,
541
+ } ,
542
+ } ,
483
543
] ;
484
544
}
485
545
@@ -585,6 +645,7 @@ describe("Platform module", function () {
585
645
586
646
assert . strictEqual ( defaultPowerShell . exePath , expectedPowerShell . exePath ) ;
587
647
assert . strictEqual ( defaultPowerShell . displayName , expectedPowerShell . displayName ) ;
648
+ assert . strictEqual ( defaultPowerShell . supportsProperArguments , expectedPowerShell . supportsProperArguments ) ;
588
649
} ) ;
589
650
}
590
651
@@ -620,6 +681,7 @@ describe("Platform module", function () {
620
681
621
682
assert . strictEqual ( foundPowerShell && foundPowerShell . exePath , expectedPowerShell . exePath ) ;
622
683
assert . strictEqual ( foundPowerShell && foundPowerShell . displayName , expectedPowerShell . displayName ) ;
684
+ assert . strictEqual ( foundPowerShell && foundPowerShell . supportsProperArguments , expectedPowerShell . supportsProperArguments ) ;
623
685
}
624
686
625
687
assert . strictEqual (
0 commit comments