You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for Add-ShouldOperator indicates that the -Test parameter is supposed to receive a [ScriptBlock] containing the assertion to be run. However, there isn't any documentation on how to pass in test/reference values, etc. etc. (either from the pipeline or via named/positional parameters).
I was able to find a blog post that partially covered it in passing, but some in-module documentation would be really useful here.
Some questions that a user should be able to answer from the documentation (either via examples or from the text itself) are:
How can I define a parameter in my test block such-that it's exposed to users when they call it via Should?
Are there any required/special-use parameters (e.g. $Negate)?
Are there any special steps required for receiving pipeline input from Should?
The text was updated successfully, but these errors were encountered:
Add-ShouldOperator
General summary of the issue
The documentation for
Add-ShouldOperator
indicates that the-Test
parameter is supposed to receive a[ScriptBlock]
containing the assertion to be run. However, there isn't any documentation on how to pass in test/reference values, etc. etc. (either from the pipeline or via named/positional parameters).I was able to find a blog post that partially covered it in passing, but some in-module documentation would be really useful here.
Some questions that a user should be able to answer from the documentation (either via examples or from the text itself) are:
Should
?$Negate
)?Should
?The text was updated successfully, but these errors were encountered: