Table of Contents

Class StaThreadFixture

Namespace
Xunit
Assembly
Xunit.StaFact.dll

Provides a shared STA thread for StaFactAttribute and StaTheoryAttribute tests.

public class StaThreadFixture : UIThreadFixtureBase, IAsyncLifetime, IAsyncDisposable
Inheritance
StaThreadFixture
Implements
IAsyncLifetime
Inherited Members

Remarks

This fixture does not install a synchronization context. Code after a yielding await may resume on a thread-pool thread.

Constructors

StaThreadFixture()

Initializes a new instance of the StaThreadFixture class.

public StaThreadFixture()