Search Results for

    Show / Hide Table of Contents

    True Constraint

    TrueConstraint tests that a value is true.

    Constructor

    TrueConstraint()
    

    Syntax

    Is.True
    

    Example of Use

    [Test]
    public void TrueConstraint_Examples()
    {
        Assert.That(2 + 2 == 4, Is.True);
        Assert.That(2 + 2 == 5, Is.False);
    }
    
    • 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