Table of Contents

Class Contains

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

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

CollectionContainsConstraint

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

SubstringConstraint