![]() |
VOOZH | about |
dotnet add package Xunit.StaFact --version 3.0.13
NuGet\Install-Package Xunit.StaFact -Version 3.0.13
<PackageReference Include="Xunit.StaFact" Version="3.0.13" />
<PackageVersion Include="Xunit.StaFact" Version="3.0.13" />Directory.Packages.props
<PackageReference Include="Xunit.StaFact" />Project file
paket add Xunit.StaFact --version 3.0.13
#r "nuget: Xunit.StaFact, 3.0.13"
#:package Xunit.StaFact@3.0.13
#addin nuget:?package=Xunit.StaFact&version=3.0.13Install as a Cake Addin
#tool nuget:?package=Xunit.StaFact&version=3.0.13Install as a Cake Tool
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.
Use v1.x versions of this package for use with xUnit v2. Use v2.0 versions of this package for use with xUnit.v3 v1.x. Use v2.1+ versions of this package for use with xUnit.v3 v2+. Use v3.0+ versions of this package for use with xunit.v3 v3+
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-macos14.0 net8.0-macos14.0 is compatible. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net8.0-windows7.0 net8.0-windows7.0 is compatible. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 is compatible. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 2 NuGet packages that depend on Xunit.StaFact:
| Package | Downloads |
|---|---|
|
Xunit.DependencyInjection.StaFact
Support Xunit.SkippableFact. public void ConfigureServices(IServiceCollection services) { services.AddStaFactSupport(); } Not support: 1. ITestOutputHelperAccessor.Output is alway null. so, ILogger can't output to xunit output. 2. Can't inject ITestOutputHelper 3. [MethodData] |
|
|
Melville.TestHelpers
A library that makes unit testing a little bit easier. |
Showing the top 20 popular GitHub repositories that depend on Xunit.StaFact:
| Repository | Stars |
|---|---|
|
AvaloniaUI/Avalonia
Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The future of .NET UI
|
|
|
dotnet/roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
|
|
|
cefsharp/CefSharp
.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
|
|
|
dotnet/wpf
WPF is a .NET Core UI framework for building Windows desktop applications.
|
|
|
PrismLibrary/Prism
Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Xamarin Forms, and Uno / Win UI Applications..
|
|
|
shimat/opencvsharp
OpenCV wrapper for .NET
|
|
|
dotnet/winforms
Windows Forms is a .NET UI framework for building Windows desktop applications.
|
|
|
TheJoeFin/Text-Grab
Use OCR in Windows quickly and easily with Text Grab. With optional background process and notifications.
|
|
|
microsoft/perfview
PerfView is a CPU and memory performance-analysis tool
|
|
|
fluentassertions/fluentassertions
A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, as well as .NET Core 2.1, .NET Core 3.0, .NET 6, .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.
|
|
|
dotnet/skills
Repository for skills to assist AI coding agents with .NET and C#
|
|
|
Caliburn-Micro/Caliburn.Micro
A small, yet powerful framework, designed for building applications across all XAML platforms. Its strong support for MV* patterns will enable you to build your solution quickly, without the need to sacrifice code quality or testability.
|
|
|
CoreWCF/CoreWCF
Main repository for the Core WCF project
|
|
|
dotnet/wcf
This repo contains the client-oriented WCF libraries that enable applications built on .NET Core to communicate with WCF services.
|
|
|
kubernetes-client/csharp
Officially supported dotnet Kubernetes Client library
|
|
|
dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK.
|
|
|
AwesomeAssertions/AwesomeAssertions
A fork of FluentAssertions controlled by the community.
|
|
|
microsoft/vs-threading
The Microsoft.VisualStudio.Threading is a xplat library that provides many threading and synchronization primitives used in Visual Studio and other applications.
|
|
|
microsoft/vs-streamjsonrpc
The StreamJsonRpc library offers JSON-RPC 2.0 over any .NET Stream, WebSocket, or Pipe. With bonus support for request cancellation, client proxy generation, and more.
|
|
|
NuGet/NuGet.Client
Client Tools for NuGet - including Visual Studio extensions, command line tools, and msbuild support. (Open issues on https://github.com/nuget/home/issues)
|
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.5-beta | 80 | 5/15/2026 |
| 3.0.13 | 190,381 | 7/14/2025 |
| 3.0.6-alpha | 256 | 6/19/2025 |
| 2.1.7 | 68,306 | 4/12/2025 |
| 2.1.4-alpha | 4,841 | 3/10/2025 |
| 2.0.44 | 3,516 | 3/10/2025 |
| 2.0.36-alpha | 1,125 | 2/6/2025 |
| 2.0.35-alpha | 225 | 2/5/2025 |
| 2.0.29-alpha | 313 | 1/18/2025 |
| 1.2.69 | 192,151 | 1/18/2025 |
| 1.2.46-alpha | 51,255 | 6/6/2023 |
| 1.2.22-alpha | 1,460 | 2/6/2023 |
| 1.1.11 | 1,296,824 | 1/24/2022 |
| 1.1.5-alpha | 5,392 | 5/16/2021 |
| 1.0.37 | 663,041 | 8/4/2020 |
| 1.0.33-beta | 29,339 | 5/16/2020 |
| 1.0.31-beta | 1,431 | 5/6/2020 |
| 1.0.30-beta | 1,773 | 5/3/2020 |
| 1.0.19-beta | 12,023 | 12/11/2019 |