Class EqualConstraintResult
The EqualConstraintResult class is tailored for formatting and displaying the result of an EqualConstraint.
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public class EqualConstraintResult : ConstraintResult
Constructors
View SourceEqualConstraintResult(Constraint, object?, Tolerance, bool)
Construct an EqualConstraintResult
Declaration
public EqualConstraintResult(Constraint constraint, object? actual, Tolerance tolerance, bool hasSucceeded)
Parameters
Type | Name | Description |
---|---|---|
Constraint | constraint | |
object | actual | |
Tolerance | tolerance | |
bool | hasSucceeded |
EqualConstraintResult(Constraint, object?, bool)
Construct an EqualConstraintResult
Declaration
public EqualConstraintResult(Constraint constraint, object? actual, bool hasSucceeded)
Parameters
Type | Name | Description |
---|---|---|
Constraint | constraint | |
object | actual | |
bool | hasSucceeded |
EqualConstraintResult(EqualConstraint, object?, bool)
Construct an EqualConstraintResult
Declaration
public EqualConstraintResult(EqualConstraint constraint, object? actual, bool hasSucceeded)
Parameters
Type | Name | Description |
---|---|---|
EqualConstraint | constraint | |
object | actual | |
bool | hasSucceeded |
EqualConstraintResult(EqualStringWithoutUsingConstraint, object?, bool, bool, bool, bool)
Construct an EqualConstraintResult
Declaration
public EqualConstraintResult(EqualStringWithoutUsingConstraint constraint, object? actual, bool caseInsensitive, bool ignoringWhiteSpace, bool clipStrings, bool hasSucceeded)
Parameters
Type | Name | Description |
---|---|---|
EqualStringWithoutUsingConstraint | constraint | |
object | actual | |
bool | caseInsensitive | |
bool | ignoringWhiteSpace | |
bool | clipStrings | |
bool | hasSucceeded |
Methods
View SourceWriteMessageTo(MessageWriter)
Write a failure message. Overridden to provide custom failure messages for EqualConstraint.
Declaration
public override void WriteMessageTo(MessageWriter writer)
Parameters
Type | Name | Description |
---|---|---|
MessageWriter | writer | The MessageWriter to write to |