Table of Contents

Class CollectionEquivalentConstraint

Namespace
NUnit.Framework.Constraints
Assembly
nunit.framework.dll

CollectionEquivalentConstraint is used to determine whether two collections are equivalent.

public class CollectionEquivalentConstraint : CollectionItemsEqualConstraint, IConstraint, IResolveConstraint
Inheritance
CollectionEquivalentConstraint
Implements
Inherited Members

Constructors

CollectionEquivalentConstraint(IEnumerable)

Construct a CollectionEquivalentConstraint

public CollectionEquivalentConstraint(IEnumerable expected)

Parameters

expected IEnumerable

Properties

Description

The Description of what this constraint tests, for use in messages and in the ConstraintResult.

public override string Description { get; }

Property Value

string

Methods

Matches(IEnumerable)

Test whether two collections are equivalent

protected override bool Matches(IEnumerable actual)

Parameters

actual IEnumerable

Returns

bool