Class CollectionEquivalentConstraintResult
Provides a ConstraintResult for the CollectionEquivalentConstraint.
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public class CollectionEquivalentConstraintResult : ConstraintResult
Constructors
View SourceCollectionEquivalentConstraintResult(CollectionEquivalentConstraint, CollectionTallyResult, object?, bool)
Construct a CollectionEquivalentConstraintResult using a CollectionTally.CollectionTallyResult.
Declaration
public CollectionEquivalentConstraintResult(CollectionEquivalentConstraint constraint, CollectionTally.CollectionTallyResult tallyResult, object? actual, bool isSuccess)
Parameters
Type | Name | Description |
---|---|---|
CollectionEquivalentConstraint | constraint | Source CollectionEquivalentConstraint. |
CollectionTally.CollectionTallyResult | tallyResult | Result of the collection comparison. |
object | actual | Actual collection to compare. |
bool | isSuccess | Whether or not the CollectionEquivalentConstraint succeeded. |
Methods
View SourceWriteAdditionalLinesTo(MessageWriter)
Write any additional lines (following Expected:
and But was:
) for a failing constraint.
Declaration
public override void WriteAdditionalLinesTo(MessageWriter writer)
Parameters
Type | Name | Description |
---|---|---|
MessageWriter | writer | The MessageWriter to write the failure message to. |