Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

Stars 48
Forks 16
PowerShell Gallery downloads 17,213
Release v3.0.169
Language: C# Updated: 2026-10-13

API Reference

Command

Assert-BenchmarkValue

Namespace PSPublishModule
Inputs
None
Outputs
System.Object

Asserts a benchmark value condition.

Remarks

Asserts a benchmark value condition.

Examples

Authored help example

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: Equals

Parameters

Actual Object requiredposition: 0pipeline: False
Actual value.
Expected Object requiredposition: 1pipeline: False
Expected value.
Message String optionalposition: namedpipeline: False
Optional assertion message.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the actual value when the assertion passes.

Outputs

System.Object

Assert-BenchmarkValue -Actual <Object> [-Message <String>] -NotNull [-PassThru] [<CommonParameters>]
#
Parameter set: NotNull

Parameters

Actual Object requiredposition: 0pipeline: False
Actual value.
Message String optionalposition: namedpipeline: False
Optional assertion message.
NotNull SwitchParameter requiredposition: namedpipeline: False
Assert that the value is not null.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the actual value when the assertion passes.

Outputs

System.Object