PowerShell/test/powershell/Language
Dongbo Wang c5f3a19caf Run PowerShell class static methods in the correct Runspace/SessionState (#4209)
Summary
----------
When the same script file gets executed in multiple Runspaces, the RuntimeType generated from the powershell class defined in the file will be shared among those Runspaces. For different Runspaces, different SessionState should be used to run the static methods.

Fix
---
We use the `SessionStateKeeper` to query for the correct `SessionState` to use for a static method call.
We already use `SessionStateKeeper` to track the `Runspace/SessionState` where a PowerShell class is defined, and thus we can leverage this for the static method invocation.
2017-07-14 18:05:48 -07:00
..
Classes Run PowerShell class static methods in the correct Runspace/SessionState (#4209) 2017-07-14 18:05:48 -07:00
Interop/DotNet Fix GetType() bad pattern and related issues in tests (#3134) 2017-02-15 16:40:51 -08:00
Operators add test coverage for -notcontains, -is, -isnot operators (#4179) 2017-07-11 12:27:04 -07:00
Parser Added tests for built-in type accelerators (#4230) 2017-07-14 09:53:28 -07:00
Scripting Move powershell to 2.0.0-preview3-25426-01 using the .NET CLI 2.0.0-preview2-006502 (#4144) 2017-06-30 13:07:14 -07:00
CompletionTestSupport.psm1 Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
map.json Fix try/catch to choose the more specific exception handler (#2429) 2016-12-09 12:37:08 -08:00