Skip to content

OrConstraint

jnm2 edited this page Mar 18, 2017 · 8 revisions

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

Constructor

```C# OrConstraint(Constraint left, Constraint right) ```

Syntax

```C# .Or. ```

Examples of Use

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

See also...

Clone this wiki locally