Skip to content

UniqueItemsConstraint

Charlie Poole edited this page Jan 31, 2016 · 5 revisions

UniqueItemsConstraint tests that an array, collection or other IEnumerable is composed of unique items with no duplicates.

Constructor

```C# UniqueItemsConstraint() ```

Syntax

```C# Is.Unique ```

Example of Use

Assert.That( collection, Is.Unique );
Clone this wiki locally