pester / Pester

Pester is the ubiquitous test and mock framework for PowerShell.
https://pester.dev/
Other
3.07k stars 469 forks source link

replace `Get-EquivalencyOption` with parameters #2477

Closed nohwnd closed 2 months ago

nohwnd commented 3 months ago

Get-EquivalencyOption is not exposed, so unable to customize/no docs on expected hashtable.

Just curious, why opt for object/hashtable vs parameters for this? Parameters are easier to document and splatting solves reusable parameters. If sticking with options-object, should it be typed?

_Originally posted by @fflaten in https://github.com/pester/Pester/pull/2428#discussion_r1606098213_

nohwnd commented 3 months ago

Exported.

nohwnd commented 3 months ago

get-equivalent needs more care, there is not support for Because.

Strict Order is not exposed and might not even work.