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