Search Results for

    Show / Hide Table of Contents

    EmptyDirectory Constraint

    The EmptyDirectoryConstraint tests if a Directory is empty.

    Constructor

    EmptyDirectoryConstraint()
    

    Syntax

    Is.Empty
    

    Examples of Use

    Assert.That(new DirectoryInfo(actual), Is.Empty);
    Assert.That(new DirectoryInfo(actual), Is.Not.Empty);
    
    Note

    Is.Empty actually creates an EmptyConstraint. Subsequently applying it to a DirectoryInfo causes an EmptyDirectoryConstraint 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