What is new since 4.5.0?
Should -HaveParameter
A new assertion operator -HaveParameter
was added that allows you to check function parameters, and their properties like this:
Get-Command "Invoke-WebRequest" | Should -HaveParameter Uri -Mandatory
function f ([String] $Value) { }
Get-Command f | Should -HaveParameter Value -Type String
Get-Command f | Should -Not -HaveParameter Name
Other minor fixes
See the full changelog for more info.