PowerShell/test/powershell/Language
Dongbo Wang 3a21d4c3df Search the assembly cache kept by ExecutionContext for type resolution. (#3327)
Our assembly cache contains assemblies that are explicitly loaded by powershell egine, such as via module loading or the assembly entries from InitialSessionState. We should search it before searching all loaded assemblies to give preference to resolve a type against the assemblies contained in the cache, so that in case there is a conflict, we might have a preferred assembly to use for a type resolution.

Changes:
- Search from context.AssemblyCache.Values before search from all loaded assemblies.
- Skip assemblies that we already searched and found no matching type.
- Skip checking PS types kept in the scope and type accelerators when it's not necessary.
2017-03-17 13:19:31 -07:00
..
Classes corrected use of PSModulePath casing to be consistent with Windows PowerShell (#3255) 2017-03-15 12:04:28 -07:00
Interop/DotNet Fix GetType() bad pattern and related issues in tests (#3134) 2017-02-15 16:40:51 -08:00
Operators Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
Parser Search the assembly cache kept by ExecutionContext for type resolution. (#3327) 2017-03-17 13:19:31 -07:00
Scripting corrected use of PSModulePath casing to be consistent with Windows PowerShell (#3255) 2017-03-15 12:04:28 -07:00
CompletionTestSupport.psm1 Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
LanguageTestSupport.psm1 Fix GetType() bad pattern and related issues in tests (#3134) 2017-02-15 16:40:51 -08:00
map.json Fix try/catch to choose the more specific exception handler (#2429) 2016-12-09 12:37:08 -08:00