Search Results for

    Show / Hide Table of Contents

    UniqueItems Constraint

    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

    int[] iarray = new int[] { 1, 2, 3 };
    Assert.That(iarray, Is.Unique);
    
    • Improve this Doc
    In This Article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0