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
)
Visual Basic (Declaration)
Public Shared Sub Terminate ( _
	outcome As TestOutcome _
)

Parameters

outcome
Type: Gallio.Model..::.TestOutcome
The desired test outcome.

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