Class CollectionSubsetConstraint
- Namespace
- NUnit.Framework.Constraints
- Assembly
- nunit.framework.dll
CollectionSubsetConstraint is used to determine whether one collection is a subset of another
public class CollectionSubsetConstraint : CollectionItemsEqualConstraint, IConstraint, IResolveConstraint
- Inheritance
-
CollectionSubsetConstraint
- Implements
- Inherited Members
Constructors
CollectionSubsetConstraint(IEnumerable)
Construct a CollectionSubsetConstraint
public CollectionSubsetConstraint(IEnumerable expected)
Parameters
expected
IEnumerableThe collection that the actual value is expected to be a subset of
Properties
Description
The Description of what this constraint tests, for use in messages and in the ConstraintResult.
public override string Description { get; }
Property Value
Methods
Matches(IEnumerable)
Test whether the actual collection is a subset of the expected collection provided.
protected override bool Matches(IEnumerable actual)
Parameters
actual
IEnumerable