Gets or sets the maximum amount of time the whole test including
its setup, teardown and body should be permitted to run.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.459.0)
Syntax
| C# |
|---|
public Nullable<TimeSpan> Timeout { get; set; } |
| Visual Basic (Declaration) |
|---|
Public Property Timeout As Nullable(Of TimeSpan) |
Field Value
The timeout. Default value is null.
Remarks
If the test runs any longer than this, it will be aborted by the framework. The timeout may be null to indicate the absence of a timeout.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentOutOfRangeException | Thrown if value represents a negative time span. |
