PowerShell/test/powershell/Language/Classes
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
..
MSFT_778492.psm1 Add new test files to Language directory 2016-07-20 12:10:12 -07:00
ProtectedAccess.Tests.ps1 Language tests now run clean on Linux 2016-07-20 12:10:12 -07:00
Scripting.Classes.Attributes.Tests.ps1 Fix C# tests for ValidateSetValuesGenerator (#4253) 2017-07-14 13:02:58 -07:00
Scripting.Classes.BasicParsing.Tests.ps1 Add autoload for TestLanguage.psm1 TestHelpers.psm1 (#3456) 2017-05-17 11:09:27 -07:00
Scripting.Classes.Break.Tests.ps1 Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
Scripting.Classes.Exceptions.Tests.ps1 Fix GetType() bad pattern and related issues in tests (#3134) 2017-02-15 16:40:51 -08:00
scripting.Classes.inheritance.tests.ps1 Add autoload for TestLanguage.psm1 TestHelpers.psm1 (#3456) 2017-05-17 11:09:27 -07:00
Scripting.Classes.MiscOps.Tests.ps1 Support creating PS class instance that is not bound to any runspace (#3871) 2017-06-07 18:00:03 -07:00
Scripting.Classes.Modules.Tests.ps1 corrected use of PSModulePath casing to be consistent with Windows PowerShell (#3255) 2017-03-15 12:04:28 -07:00
scripting.Classes.NestedModules.tests.ps1 Add autoload for TestLanguage.psm1 TestHelpers.psm1 (#3456) 2017-05-17 11:09:27 -07:00
Scripting.Classes.RunPath.Tests.ps1 Added comma to the list of replaced characters in assemblyname (#4136) 2017-07-06 11:32:54 -07:00
Scripting.Classes.StaticMethod.Tests.ps1 Run PowerShell class static methods in the correct Runspace/SessionState (#4209) 2017-07-14 18:05:48 -07:00
scripting.Classes.using.tests.ps1 Add autoload for TestLanguage.psm1 TestHelpers.psm1 (#3456) 2017-05-17 11:09:27 -07:00
scripting.enums.tests.ps1 Fix non-fatal (red) errors in test output (#3968) 2017-06-09 16:29:59 -07:00