Skip to content

Chaining Assertions with And

unknown edited this page Feb 11, 2013 · 1 revision

Chaining Assertions with And

By adding the word And to the end of a Should command, Should will output the input to the pipeline. This lets you do additional tests on the values:

@(1,2,3) | Should Count 3 And | Should Contain 2

You can chain any number of assertions this way.

Clone this wiki locally