Class CollectionSupersetConstraint
- Namespace
- NUnit.Framework.Constraints
- Assembly
- nunit.framework.dll
CollectionSupersetConstraint is used to determine whether one collection is a superset of another
public class CollectionSupersetConstraint : CollectionItemsEqualConstraint, IConstraint, IResolveConstraint
- Inheritance
-
CollectionSupersetConstraint
- Implements
- Inherited Members
Constructors
CollectionSupersetConstraint(IEnumerable)
Construct a CollectionSupersetConstraint
public CollectionSupersetConstraint(IEnumerable expected)
Parameters
expected
IEnumerableThe collection that the actual value is expected to be a superset 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 superset of the expected collection provided.
protected override bool Matches(IEnumerable actual)
Parameters
actual
IEnumerable