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.

There is a newer prerelease version of this package available.
See the version list below for details.
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"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xunit.StaFact as a Cake Addin
#addin nuget:?package=Xunit.StaFact&version=1.0.37

// Install Xunit.StaFact as a Cake Tool
#tool nuget:?package=Xunit.StaFact&version=1.0.37
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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.1.5-alpha 359 5/16/2021
1.0.37 98,030 8/4/2020
1.0.33-beta 23,089 5/16/2020
1.0.31-beta 243 5/6/2020
1.0.30-beta 751 5/3/2020
1.0.19-beta 10,049 12/11/2019
1.0.11-beta 10,160 9/4/2019
1.0.3-beta 20,841 4/16/2019
0.3.18 290,734 2/5/2019
0.3.13 10,497 12/2/2018
0.3.5 76,104 10/31/2018
0.3.2 23,534 10/10/2018
0.2.17 23,635 7/1/2018
0.2.9 146,867 7/16/2017
0.2.3-beta 13,619 3/25/2017
0.1.44-beta 2,190 2/10/2017
0.1.36-beta 7,138 2/1/2016
0.1.29-alpha 1,404 1/31/2016
0.1.26-alpha 606 1/30/2016
0.1.7-alpha 567 1/24/2016