Class Contains
Helper class with properties and methods that supply a number of constraints used in Asserts.
public class Contains
- Inheritance
-
Contains
- Inherited Members
Constructors
Contains()
public Contains()
Methods
Item(object)
Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection.
public static CollectionContainsConstraint Item(object expected)
Parameters
expected
object
Returns
Key(object)
Returns a new DictionaryContainsKeyConstraint checking for the presence of a particular key in the dictionary.
public static DictionaryContainsKeyConstraint Key(object expected)
Parameters
expected
object
Returns
Substring(string)
Returns a constraint that succeeds if the actual value contains the substring supplied as an argument.
public static SubstringConstraint Substring(string expected)
Parameters
expected
string
Returns
Value(object)
Returns a new DictionaryContainsValueConstraint checking for the presence of a particular value in the dictionary.
public static DictionaryContainsValueConstraint Value(object expected)
Parameters
expected
object