Skip to content

AndConstraint

jnm2 edited this page Jun 14, 2017 · 8 revisions

AndConstraint combines two other constraints and succeeds only if they both succeed.

Constructor

AndConstraint(Constraint left, Constraint right)

Syntax

<Constraint>.And.<Constraint>

Examples of Use

Assert.That( 2.3, Is.GreaterThan( 2.0 ).And.LessThan( 3.0 ) );

See also...

Clone this wiki locally