Skip to content

OrConstraint

Charlie Poole edited this page Jan 31, 2016 · 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