February 2019
Intermediate to advanced
626 pages
15h 51m
English
Pester comes with support for a variety of assertion types. These assertion types are exposed as parameters for Should. Several of these assertion types grant access to additional parameters. These assertions are, for the most part, similar to PowerShell's comparison operators.
Assertions are most frequently used to test the actions and output of the subject of a test. The simplest of these, -Be, was used in the examples for Get-SquareRoot. The -Be assertion is the equivalent of the -eq comparison operator, with one difference: -Be can compare arrays for equality.
Testing for the ...
Read now
Unlock full access