Get-ShouldOperator
#
SYNOPSISDisplay the assertion operators available for use with Should.
#
SYNTAX#
DESCRIPTIONGet-ShouldOperator returns a list of available Should parameters, their aliases, and examples to help you craft the tests you need.
Get-ShouldOperator will list all available operators, including any registered by the user with Add-AssertionOperator.
#
EXAMPLES#
EXAMPLE 1Return all available Should assertion operators and their aliases.
#
EXAMPLE 2Return help examples for the Be assertion operator. -Name is a dynamic parameter that tab completes all available options.
#
PARAMETERS#
-Name{{ Fill Name Description }}
#
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#
NOTESPester uses dynamic parameters to populate Should arguments.
This limits the user's ability to discover the available assertions via
standard PowerShell discovery patterns (like Get-Help Should -Parameter *
).
#
RELATED LINKShttps://pester.dev/docs/v4/commands/Should
#
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.