C# Class UnityEngine.NUnit.Framework.Constraints.CollectionSubsetConstraint

CollectionSubsetConstraint is used to determine whether one collection is a subset of another
Inheritance: CollectionItemsEqualConstraint
Mostra file Open project: Unity-Technologies/nunitv2

Public Methods

Method Description
CollectionSubsetConstraint ( IEnumerable expected ) : System.Collections

Construct a CollectionSubsetConstraint

WriteDescriptionTo ( MessageWriter writer ) : void

Write a description of this constraint to a MessageWriter

Protected Methods

Method Description
doMatch ( IEnumerable actual ) : bool

Test whether the actual collection is a subset of the expected collection provided.

Method Details

CollectionSubsetConstraint() public method

Construct a CollectionSubsetConstraint
public CollectionSubsetConstraint ( IEnumerable expected ) : System.Collections
expected IEnumerable The collection that the actual value is expected to be a subset of
return System.Collections

WriteDescriptionTo() public method

Write a description of this constraint to a MessageWriter
public WriteDescriptionTo ( MessageWriter writer ) : void
writer MessageWriter
return void

doMatch() protected method

Test whether the actual collection is a subset of the expected collection provided.
protected doMatch ( IEnumerable actual ) : bool
actual IEnumerable
return bool