Terminates the test silently and reports a specific test outcome.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public static void TerminateSilently( TestOutcome outcome ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub TerminateSilently ( _ outcome As TestOutcome _ ) |
Parameters
- outcome
- Type: Gallio.Model..::.TestOutcome
The desired test outcome.
Remarks
Unlike Terminate(TestOutcome) 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 SilentTestException 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
| Exception | Condition |
|---|---|
| Gallio.Framework..::.SilentTestException | Thrown always. |
