Search Results for

    Show / Hide Table of Contents

    PropertyExists Constraint

    The PropertyExistsConstraint tests for the existence of a named property on an object.

    Constructor

    PropertyExistsConstraint(string name)
    

    Syntax

    Has.Property(string)
    

    Examples of Use

    Assert.That(someObject, Has.Property("Version"));
    

    See also

    • PropertyConstraint
    • 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