Skip to content

UniqueItemsConstraint

Chris Maddock edited this page May 27, 2017 · 5 revisions

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

Constructor

UniqueItemsConstraint()

Syntax

Is.Unique

Example of Use

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