Assert
This page was generated
Contributions are welcome in Psake-repo.
SYNOPSIS
Helper function for "Design by Contract" assertion checking.
SYNTAX
Assert [-conditionToCheck] <Object> [-failureMessage] <String> [-ProgressAction <ActionPreference>]
[<CommonParameters>]
DESCRIPTION
This is a helper function that makes the code less noisy by eliminating many of the "if" statements that are normally required to verify assumptions in the code.
EXAMPLES
EXAMPLE 1
Assert $false "This always throws an exception"
Example of an assertion that will always fail.