Joutsen v0.5.0+12-g5dd5f7e
Static Public Member Functions | List of all members
Joutsen.NUnit3.HasProperties Class Reference

A factory class with methods that conveniently create constraints for object comparison through their public properties. More...

Static Public Member Functions

static EqualPropertiesConstraint EqualTo (object expected)
 Creates a new constraint which compares an object to the expected object by public properties. More...
 

Detailed Description

A factory class with methods that conveniently create constraints for object comparison through their public properties.

Since
0.2.1

Member Function Documentation

◆ EqualTo()

static EqualPropertiesConstraint Joutsen.NUnit3.HasProperties.EqualTo ( object  expected)
static

Creates a new constraint which compares an object to the expected object by public properties.

Parameters
expectedthe expected object defining the property values to test for
Returns
a new instance of Framework.NUnit3.EqualPropertiesConstraint for the expected object