API Reference
Command
Assert-BenchmarkValue
Asserts a benchmark value condition.
Remarks
Asserts a benchmark value condition.
Examples
EXAMPLE 1
Assert-BenchmarkValue -Actual 'Value'
EXAMPLE 2
Assert-BenchmarkValue -NotNull
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Assert-BenchmarkValue -Actual <Object> -Expected <Object> [-Message <String>] [-PassThru] [<CommonParameters>]#Parameter set:
EqualsParameters
- Actual Object
- Actual value.
- Expected Object
- Expected value.
- Message String
- Optional assertion message.
- PassThru SwitchParameter
- Emit the actual value when the assertion passes.
Outputs
System.Object
Assert-BenchmarkValue -Actual <Object> [-Message <String>] -NotNull [-PassThru] [<CommonParameters>]#Parameter set:
NotNullParameters
- Actual Object
- Actual value.
- Message String
- Optional assertion message.
- NotNull SwitchParameter
- Assert that the value is not null.
- PassThru SwitchParameter
- Emit the actual value when the assertion passes.
Outputs
System.Object