Search Results for

    Show / Hide Table of Contents

    Not Constraint

    NotConstraint reverses the effect of another constraint. If the base constraint fails, NotConstraint succeeds. If the base constraint succeeds, NotConstraint fails.

    Constructor

    NotConstraint()
    

    Syntax

    Is.Not...
    

    Examples of Use

    Assert.That(collection, Is.Not.Unique);
    Assert.That(2 + 2, Is.Not.EqualTo(5));
    
    • Edit this page
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0