|
Joutsen v0.5.0+12-g5dd5f7e
|
A nunit constraint which offers object comparison by the classes public properties. More...
Classes | |
| class | EqualPropertiesConstraintResult |
| A class representing the result of a EqualPropertiesConstraint. More... | |
Public Member Functions | |
| EqualPropertiesConstraint (object expected) | |
| Creates a new instance for an expectd object. More... | |
| EqualPropertiesConstraint (object expected, params string[] ignoredProperties) | |
| Creates a new instance with names of properties to ignore for the comparison. More... | |
| EqualPropertiesConstraint | IgnoringProperties (params String[] ignoredProperties) |
| Changes the properties which should be ignored when the objects are compared. More... | |
| override ConstraintResult | ApplyTo< TActual > (TActual actual) |
Applies the constraint to the actual value. More... | |
Properties | |
| override string | Description [get] |
| Provide a description of the constraint for messages. More... | |
A nunit constraint which offers object comparison by the classes public properties.
| Joutsen.NUnit3.EqualPropertiesConstraint.EqualPropertiesConstraint | ( | object | expected | ) |
Creates a new instance for an expectd object.
| expected | the expected object used for comparison of the properties. |
| Joutsen.NUnit3.EqualPropertiesConstraint.EqualPropertiesConstraint | ( | object | expected, |
| params string[] | ignoredProperties | ||
| ) |
Creates a new instance with names of properties to ignore for the comparison.
| expected | the expected object used for comparison of the properties. |
| ignoredProperties | The names of the properties which should be ignored when comparing the two objects. |
| override ConstraintResult Joutsen.NUnit3.EqualPropertiesConstraint.ApplyTo< TActual > | ( | TActual | actual | ) |
Applies the constraint to the actual value.
| TActual | the type of the actual value |
| actual | the value to test the constraint against |
| EqualPropertiesConstraint Joutsen.NUnit3.EqualPropertiesConstraint.IgnoringProperties | ( | params String[] | ignoredProperties | ) |
Changes the properties which should be ignored when the objects are compared.
| ignoredProperties | the names of the properties which should be ignored when comparing the two objects |
|
get |
Provide a description of the constraint for messages.