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.
#r "nuget: Xunit.StaFact, 1.0.37"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

Release Notes


NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (25)

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

Repository Stars
Google's Material Design in XAML & WPF, for C# & VB.Net.
.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
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.
Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Xamarin Forms, and Uno / Win UI Applications..
OpenCV wrapper for .NET

Version History

Version Downloads Last updated
1.0.37 46,000 8/4/2020
1.0.33-beta 22,790 5/16/2020
1.0.31-beta 191 5/6/2020
1.0.30-beta 677 5/3/2020
1.0.19-beta 9,866 12/11/2019
1.0.11-beta 9,960 9/4/2019
1.0.3-beta 10,031 4/16/2019
0.3.18 243,703 2/5/2019
0.3.13 10,292 12/2/2018
0.3.5 73,303 10/31/2018
0.3.2 23,187 10/10/2018
0.2.17 23,348 7/1/2018
0.2.9 130,056 7/16/2017
0.2.3-beta 12,933 3/25/2017
0.1.44-beta 2,132 2/10/2017
0.1.36-beta 6,957 2/1/2016
0.1.29-alpha 1,345 1/31/2016
0.1.26-alpha 548 1/30/2016
0.1.7-alpha 524 1/24/2016