PowerShell/test/powershell/engine
Dongbo Wang 63cf0c330c
Allow explicitly specified named parameter to supersede the same one from hashtable splatting (#13162)
Allow explicitly specified named parameter to supersede the same one from hashtable splatting.
The work is done in parameter binder, so that parameters can be resolved to cover a parameter's official name, alias name, and unambiguous partial prefix name.

The changes covers covers Hashtable splatting in 3 scenarios:

- Cmdlet or advanced script invocation;
- Simple function invocation;
- ScriptBlock.GetPowerShell(...), where the script block contains command invocation only and uses Hashtable splatting.

Some code refactoring is done to ParameterBinderController to avoid redundant code being duplicated in CmdletParameterBinderController and ScriptParameterBinderController.
2020-08-05 10:59:53 +05:00
..
Api Add support for some .NET intrinsic type converters (#12580) 2020-07-08 14:32:58 -07:00
Basic Wrap tests in pester blocks (#12700) 2020-05-23 13:24:53 +00:00
Cdxml Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files (#12584) 2020-05-07 17:00:30 +05:00
COM Wrap tests in pester blocks (#12700) 2020-05-23 13:24:53 +00:00
ETS Wrap tests in pester blocks (#12700) 2020-05-23 13:24:53 +00:00
ExperimentalFeature Update copyright notice to latest guidance (#12190) 2020-03-24 11:08:37 -07:00
Formatting Remove use of Test-Path in ConciseView (#12778) 2020-06-11 16:07:18 +05:00
Help Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files (#12584) 2020-05-07 17:00:30 +05:00
Job Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files (#12584) 2020-05-07 17:00:30 +05:00
Module Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files (#12584) 2020-05-07 17:00:30 +05:00
ParameterBinding Allow explicitly specified named parameter to supersede the same one from hashtable splatting (#13162) 2020-08-05 10:59:53 +05:00
Remoting Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files (#12584) 2020-05-07 17:00:30 +05:00
ResourceValidation Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files (#12584) 2020-05-07 17:00:30 +05:00
Security Update copyright notice to latest guidance (#12190) 2020-03-24 11:08:37 -07:00