Xunit.StaFact 1.0.37

Run your xunit-based tests on an STA thread with the WPF Dispatcher, a WinForms SynchronizationContext, or even a cross-platform generic UI thread emulation with a SynchronizationContext that keeps code running on a "main thread" for that test.

Simply use [WpfFact], [WinFormsFact], [StaFact] or the cross-platform [UIFact] on your test method to run your test under conditions that most closely match the main thread in your application.

Theory variants of these attributes allow for parameterized testing. Check out the xunit.combinatorial nuget package for pairwise or combinatorial testing with theories.

Install-Package Xunit.StaFact -Version 1.0.37
dotnet add package Xunit.StaFact --version 1.0.37
<PackageReference Include="Xunit.StaFact" Version="1.0.37" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xunit.StaFact --version 1.0.37
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

https://github.com/AArnott/Xunit.StaFact/releases/tag/v1.0.37

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (23)

Showing the top 5 popular GitHub repositories that depend on Xunit.StaFact:

Repository Stars
cefsharp/CefSharp
.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
reactiveui/ReactiveUI
An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. ReactiveUI allows you to abstract mutable state away from your user interfaces, express the idea around a feature in one readable place and improve the testability of your application.
PrismLibrary/Prism
Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Xamarin Forms, and Uno / Win UI Applications..
dotnet/winforms
Windows Forms is a .NET Core UI framework for building Windows desktop applications.
stride3d/stride
Stride Game Engine (formerly Xenko)

Version History

Version Downloads Last updated
1.0.37 7,940 8/4/2020
1.0.33-beta 18,683 5/16/2020
1.0.31-beta 137 5/6/2020
1.0.30-beta 609 5/3/2020
1.0.19-beta 9,563 12/11/2019
1.0.11-beta 9,674 9/4/2019
1.0.3-beta 3,249 4/16/2019
0.3.18 188,078 2/5/2019
0.3.13 9,947 12/2/2018
0.3.5 68,154 10/31/2018
0.3.2 22,831 10/10/2018
0.2.17 22,940 7/1/2018
0.2.9 112,504 7/16/2017
0.2.3-beta 11,959 3/25/2017
0.1.44-beta 2,008 2/10/2017
0.1.36-beta 6,707 2/1/2016
0.1.29-alpha 1,210 1/31/2016
0.1.26-alpha 425 1/30/2016
0.1.7-alpha 392 1/24/2016