< Back

New-AssertionException

Sun Jan 12, 2020 5:53 pm

NAME New-AssertionException



SYNOPSIS

Creates and throws a `Blade.AssertionException`, which fails a test.





SYNTAX

New-AssertionException [[-Message] <String>] [<CommonParameters>]





DESCRIPTION

All failed assertions call this function to report the failure. This is Blade's `Fail` function.



ALIASES



* Fail





PARAMETERS

-Message <String>

The failure message.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS