Class DictionaryContainsValueConstraint
- Namespace
- NUnit.Framework.Constraints
- Assembly
- nunit.framework.dll
DictionaryContainsValueConstraint is used to test whether a dictionary contains an expected object as a value.
public class DictionaryContainsValueConstraint : CollectionContainsConstraint, IConstraint, IResolveConstraint
- Inheritance
-
DictionaryContainsValueConstraint
- Implements
- Inherited Members
Constructors
DictionaryContainsValueConstraint(object)
Construct a DictionaryContainsValueConstraint
public DictionaryContainsValueConstraint(object expected)
Parameters
expected
object
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 expected value is contained in the dictionary
protected override bool Matches(IEnumerable actual)
Parameters
actual
IEnumerable