Assembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.459.0)
Syntax
| C# |
|---|
public class TestAttribute : TestMethodPatternAttribute |
| Visual Basic (Declaration) |
|---|
Public Class TestAttribute _ Inherits TestMethodPatternAttribute |
Remarks
By default, if the method throws an unexpected exception, the test will be deemed to have failed. Otherwise, the test will pass.
The default behavior may be modified by test decorator attributes that may alter the execution environment of the test, catch and reinterpret any exceptions it throws, or impose additional constraints upon its execution.
Output from the test, such as text written to the console, is captured by the framework and will be included in the test report. Additional information can also be logged during test execution using the TestLog class.
A test method has a timeout of 10 minutes by default. This may be changed using the TimeoutAttribute.
The method to which this attribute is applied must be declared by the fixture class. The method may be static. If it has parameters, then the test is considered to be data-driven.
Inheritance Hierarchy
System..::.Attribute
Gallio.Framework.Pattern..::.PatternAttribute
Gallio.Framework.Pattern..::.TestMethodPatternAttribute
MbUnit.Framework..::.TestAttribute
MbUnit.Framework..::.RowTestAttribute
