CleanCode logo
sitemap
SEARCH:

CleanCode PowerShell Libraries v1.2.08 API: CleanCode » Assertion

Assertion

Aborting and non-aborting validation functions for testing.

The main workhorse function is Assert-Expression. The remaining functions are used before your Assert-Expression calls to tailor its behavior or after all calls to examine the results.

Assert-Expression Tests a PowerShell expression against expected values and provides color-coded results.
Get-AssertCounts Reports the previously collected pass/fail statistics (and resets the counters).
Set-AbortOnError Adjusts Assert-Expression to throw an exception on a failure rather than to just report the failure.
Set-MaxExpressionDisplayLength Adjusts the column width of the echoed input express to Assert-Expression.

This documentation set was created with CleanCode's DocTreeGenerator.

Valid XHTML 1.0!Valid CSS!Get CleanCode at SourceForge.net. Fast, secure and Free Open Source software downloads
Copyright © 2001-2015 Michael Sorens • Contact usPrivacy Policy
Usage governed by Mozilla Public License 1.1 and CleanCode Courtesy License
CleanCode -- The Website for Clean DesignRevised 2015.12.16