Skip to content

UniqueItemsConstraint

jnm2 edited this page Jun 14, 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