Creates a test case with a delegate to execute as its main body.

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

Syntax

C#
public TestCase(
	string name,
	Action execute
)
Visual Basic (Declaration)
Public Sub New ( _
	name As String, _
	execute As Action _
)

Parameters

name
Type: System..::.String
The test case name.
execute
Type: Gallio.Common..::.Action
The main body of the test case.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown if name or execute is null.

See Also