Creates a test that invokes an action over the collection, which is supposed to not be supported. The test expects that an exception be thrown.

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

Syntax

C#
protected Test CreateNotSupportedWriteTest(
	string methodName,
	Action<TCollection, TItem> invoke
)
Visual Basic (Declaration)
Protected Function CreateNotSupportedWriteTest ( _
	methodName As String, _
	invoke As Action(Of TCollection, TItem) _
) As Test

Parameters

methodName
Type: System..::.String
The name of the tested method.
invoke
Type: Gallio.Common..::.Action<(Of <(TCollection, TItem>)>)
The action to evaluate.

Return Value

See Also