Skip to content

OrConstraint

jnm2 edited this page Jun 14, 2017 · 8 revisions

OrConstraint combines two other constraints and succeeds if either of them succeeds.

Constructor

OrConstraint(Constraint left, Constraint right)

Syntax

<Constraint>.Or.<Constraint>

Examples of Use

Assert.That(3, Is.LessThan(5).Or.GreaterThan(10));

See also...

Clone this wiki locally