Terminates the test and reports a specific test outcome.

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

Syntax

C#
public static void Terminate(
	TestOutcome outcome,
	string messageFormat,
	params Object[] messageArgs
)
Visual Basic (Declaration)
Public Shared Sub Terminate ( _
	outcome As TestOutcome, _
	messageFormat As String, _
	ParamArray messageArgs As Object() _
)

Parameters

outcome
Type: Gallio.Model..::.TestOutcome
The desired test outcome.
messageFormat
Type: System..::.String
The custom message format string, or null if none.
messageArgs
Type: array< System..::.Object >[]()[]
The custom message arguments, or null if none.

Remarks

The test is terminated with by throwing a TestTerminatedException with the specified outcome. If other code in the test case catches this exception and does not rethrow it then the test might not terminate correctly.

Exceptions

ExceptionCondition
Gallio.Framework..::.TestTerminatedExceptionThrown always.

See Also