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

A convenience class which extends NUnit.Framework.Constraints.ConstraintExpression with methods for custom constraints. More...

Static Public Member Functions

static EqualPropertiesConstraint EqualInPropertiesTo (this ConstraintExpression expression, object expected)
 Creates a new Framework.NUnit3.EqualPropertiesConstraint for unit testing. More...
 

Detailed Description

A convenience class which extends NUnit.Framework.Constraints.ConstraintExpression with methods for custom constraints.

Since
0.2.1

Member Function Documentation

◆ EqualInPropertiesTo()

static EqualPropertiesConstraint Joutsen.NUnit3.ConstraintHelper.EqualInPropertiesTo ( this ConstraintExpression  expression,
object  expected 
)
static

Creates a new Framework.NUnit3.EqualPropertiesConstraint for unit testing.

Parameters
expressionthe constraint expression to extend with the Framework.NUnit3.EqualPropertiesConstraint.
expectedthe object containing the expected property values
Returns
a new instance of Framework.NUnit3.EqualPropertiesConstraint for the expected value object