Skip to content

PropertyExistsConstraint

jnm2 edited this page Jun 14, 2017 · 5 revisions

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...

Clone this wiki locally