Specifies the behavior that should take place when a AssertionFailure
is submitted to the AssertionContext.
Namespace:
Gallio.Framework.AssertionsAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
[FlagsAttribute] public enum AssertionFailureBehavior |
| Visual Basic (Declaration) |
|---|
<FlagsAttribute> _ Public Enumeration AssertionFailureBehavior |
Members
| Member name | Description | |
|---|---|---|
| Log |
When an assertion failure is reported, capture it in a list, log it, and allow
the computation to continue.
| |
| Throw |
When an assertion failure is reported, capture it in a list, then throw an
AssertionFailureException to immediately abort the current computation.
| |
| LogAndThrow |
When an assertion failure is reported, capture it in a list, log it, then throw an
AssertionFailureException to immediately abort the current computation.
| |
| Discard |
When an assertion failure is reported, discard it (instead of capturing it in a list)
and allow the current computation to continue.
| |
| CaptureAndContinue |
When an assertion failure is reported, capture it in a list and allow the current
computation to continue.
| |
| Format |
Formats an object using the default IFormatter.
| |
| Format |
Formats an object using the specified IFormatter.
|
Remarks
There are three orthogonal dimensions to the assertion failure behavior:
- Log / No-Log: Log the failure when reported, or do not log it.
- Throw / No-Throw: Throw an exception to abort computation, or allow it to continue
- Discard / No-Discard (aka. CaptureAndContinue): Discard the failure when finished reporting it, or capture it in a list for further processing
