Open o-l-a-v opened 1 month ago
Wrote two tests for issue #1504. The issue is not fixed yet, but I had two scenarios that could easily be added to the relevant test file.
Repro to wrongfully trigger PSUseUsingScopeModifierInNewRunspaces, which I added to test:
PSUseUsingScopeModifierInNewRunspaces
# Microsoft.PowerShell.Core \ Start-Job Start-Job -ScriptBlock { Param($Foo) $Foo } -ArgumentList 'Bar' | Receive-Job -Wait -AutoRemoveJob # Microsoft.PowerShell.ThreadJob Start-ThreadJob -ScriptBlock { Param($Foo) $Foo } -ArgumentList 'Bar' | Receive-Job -Wait -AutoRemoveJob
.cs
.ps1
.psm1
WIP:
PR Summary
Wrote two tests for issue #1504. The issue is not fixed yet, but I had two scenarios that could easily be added to the relevant test file.
Repro to wrongfully trigger
PSUseUsingScopeModifierInNewRunspaces
, which I added to test:PR Checklist
.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
to the beginning of the title and remove the prefix when the PR is ready.