Terminates the test silently and reports a specific test outcome.

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

Syntax

C#
public static void TerminateSilently(
	TestOutcome outcome,
	string messageFormat,
	params Object[] messageArgs
)
Visual Basic (Declaration)
Public Shared Sub TerminateSilently ( _
	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

Unlike Terminate(TestOutcome, String, array<Object>[]()[]) this method does not report the stack trace. It also does not include a termination reason unless one is explicitly specified by the caller.

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..::.SilentTestExceptionThrown always.

See Also