Adds a new class of distinct object instances to the collection.

Namespace:  MbUnit.Framework.ContractVerifiers
Assembly:  MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public void Add(
	Type expectedException,
	params T[] invalidValues
)
Visual Basic (Declaration)
Public Sub Add ( _
	expectedException As Type, _
	ParamArray invalidValues As T() _
)

Parameters

expectedException
Type: System..::.Type
The exception type to associate with the new class.
invalidValues
Type: array< T >[]()[]
an array of distinct object instances to populate the new class.

Remarks

The new class is created with the specified arguments.

See Also