Share via


LoggingTestBase Class

Definition

A base class for Xunit tests that need logging.

public abstract class LoggingTestBase : Microsoft.VisualStudio.Sdk.TestFramework.TestBase
type LoggingTestBase = class
    inherit TestBase
Public MustInherit Class LoggingTestBase
Inherits TestBase
Inheritance
LoggingTestBase
Derived

Constructors

LoggingTestBase(ITestOutputHelper)

Initializes a new instance of the LoggingTestBase class.

Properties

ExpectedTimeout

Gets a reasonably short time period to wait where a timeout is expected.

(Inherited from TestBase)
ExpectedTimeoutToken

Gets a newly initialized CancellationToken that is canceled after ExpectedTimeout expires from the time this property is retrieved.

(Inherited from TestBase)
Logger

Gets the logger for the current.

TestStopwatch

Gets a stopwatch that is started when the test class is instantiated.

(Inherited from TestBase)
TimeoutToken

Gets a token that gets canceled UnexpectedTimeout after the test class is instantiated.

(Inherited from TestBase)
UnexpectedTimeout

Gets a reasonably long time period to wait where we expect some other event to occur rather than normal test execution waiting this whole time period.

(Inherited from TestBase)
UnexpectedTimeoutToken

Gets a newly initialized CancellationToken that is canceled after UnexpectedTimeout expires from the time this property is retrieved.

(Inherited from TestBase)

Methods

Dispose() (Inherited from TestBase)
Dispose(Boolean)

Disposes of managed and unmanaged resources owned by this object.

Applies to