The Gallio.Model.Contexts namespace provides an optional abstraction for
associating a ITestContext with a thread which can then
be used to track the current test and to publish test messages to a
IMessageSink.
Classes
| Class | Description | |
|---|---|---|
| DefaultTestContextTracker |
The default context tracker tracks the current context by way
of the thread's ExecutionContext and CallContext.
| |
| ObservableTestContextManager |
An observable test context manager creates and tracks test contexts and
publishes test messages back to a IMessageSink.
| |
| ObservableTestLogWriter |
A log writer that sends messages to a IMessageSink.
| |
| StubTestContext |
A stub implementation of TextualMarkupDocumentWriter using a StubTestContextTracker.
| |
| StubTestContextTracker |
The stub context tracker is a dummy implementation of ITestContextTracker
that is used in situations where the runtime environment has not been initialized.
| |
| TestContextTrackerAccessor |
Static service locator for StubTestContextTracker.
|
Interfaces
| Interface | Description | |
|---|---|---|
| ITestContext |
The 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.
| |
| ITestContextManager |
A test context manager provides access to the ITestContextTracker
and creates new ITestContexts with the help of the tracker.
| |
| ITestContextTracker |
The context tracker tracks the ITestContext associated with threads.
|
Remarks
The types in this namespace are provided as an optional convenience for implementing a ITestDriver.
