
Getting Started with xUnit.net v2 [2025 July 4] | xUnit.net
You may have wondered why your first unit tests use an attribute named [Fact] rather than one with a more traditional name like Test. xUnit.net includes support for two different major types …
Home | xUnit.net
xUnit.net is a free, open source, community-focused unit testing tool for C#, F#, and Visual Basic. xUnit.net v3 supports .NET 8.0 or later, and .NET Framework 4.7.2 or later.
Sharing Context between Tests - xUnit.net
It is common for unit test classes to share setup and cleanup code (often called "test context"). xUnit.net offers several methods for sharing this setup and cleanup code, depending on the …
Getting Started with xUnit.net v3
You may have wondered why your first unit tests use an attribute named [Fact] rather than one with a more traditional name like Test. xUnit.net includes support for two different major types …
xUnit1001 | xUnit.net
Fact methods cannot have parameters"Fact methods cannot have parameters" Cause A fact method has one or more parameters. Reason for rule A fact method is a non ...
Class FactAttribute | xUnit.net
Attribute that is applied to a method to indicate that it is a fact that should be run by the default test runner.
Migrating Unit Tests from v2 to v3 [2025 April 12] | xUnit.net
The two previous libraries (xunit.runner.reporters and xunit.runner.utility) were merged into a single library (xunit.v3.runner.utility). Most of the types in this library have retained the Xunit …
xUnit1004 | xUnit.net
Test methods should not be skipped"Test methods should not be skipped" Cause Tests should not be skipped long term. This analyzer highlights skipped tests for better visibility. Reason for …
Running Tests in Parallel - xUnit.net
A typical developer machine in 2006 (when we first started working on xUnit.net) had a single or dual core CPU, no hyper-threading, and perhaps 2 GB of RAM. Today's modern developer …
xUnit1005 | xUnit.net
Fact methods should not have test data"Fact methods should not have test data" Cause A fact method has one or more attributes that provide test data. Reason for rule Unlike theory …