Add-AssertionOperator
#
SYNOPSISRegister an Assertion Operator with Pester
#
SYNTAX#
DESCRIPTIONThis function allows you to create custom Should assertions.
#
EXAMPLES#
EXAMPLE 1#
PARAMETERS#
-NameThe name of the assertion. This will become a Named Parameter of Should.
#
-TestThe test function. The function must return a PSObject with a [Bool]succeeded and a [string]failureMessage property.
#
-AliasA list of aliases for the Named Parameter.
#
-InternalNameIf -Name is different from the actual function name, record the actual function name here. Used by Get-ShouldOperator to pull function help.
#
-SupportsArrayInputDoes the test function support the passing an array of values to test.
#
CommonParametersThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
#
INPUTS#
OUTPUTS#
NOTES#
RELATED LINKS#
EDIT THIS PAGEThis page was auto-generated using Pester's comment based help. To edit the content of this page, change the corresponding help in the pester/Pester repository. See our contribution guide for more information.