The test context provides information about the environment in which
a test is executing. A new context is created each time a test or
test step begins execution.
Namespace:
Gallio.FrameworkAssembly: Gallio (in Gallio.dll) Version: 3.2.0.0 (3.2.376.0)
Syntax
| C# |
|---|
public sealed class TestContext |
| Visual Basic (Declaration) |
|---|
Public NotInheritable Class TestContext |
Remarks
Test contexts are arranged in a hierarchy that corresponds to the order in which the contexts were entered. Thus the context for a test likely has as its parent the context for its containing test fixture.
Arbitrary user data can be associated with a test context. Furthermore, client code may attach Finishing event handlers to perform resource reclamation just prior to marking the test step as finished.
