Search Results for

    Show / Hide Table of Contents

    EmptyString Constraint

    The EmptyStringConstraint tests if a string is empty.

    Constructor

    EmptyStringConstraint()
    

    Syntax

    Is.Empty
    

    Examples of Use

    Assert.That(string.Empty, Is.Empty);
    Assert.That("A String", Is.Not.Empty);
    
    Note

    Is.Empty actually creates an EmptyConstraint. Subsequently applying it to a string causes an EmptyStringConstraint to be created.

    • 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