
xUnit.net
xUnit.net is a free, open-source unit testing tool for C#, F#, and Visual Basic.
What xUnit.net is
xUnit.net is a free, open-source unit testing tool for C#, F#, and Visual Basic. Its templates support those languages, and the framework offers facts for invariant conditions and theories that run against specified data. Tests can run in parallel; version 3.4 adds an all-tests parallel mode. Class fixtures share an object among tests in a class, while version 3 also offers assembly fixtures shared across test classes. xUnit.net works with the .NET SDK command line, Visual Studio, Visual Studio Code, JetBrains Rider, NCrunch, Microsoft.Testing.Platform, and VSTest-compatible environments. Version 3 test projects are standalone executables that can run directly. The documentation describes Native AOT support for several runner options, and analyzers offer code analysis and fixes for common authoring issues. Version 3 requires .NET 8.0 or later or .NET Framework 4.7.2 or later. Version 2 remains in maintenance mode for critical bug fixes, while new features are developed for version 3. The project uses the Apache 2 license and is part of the .NET Foundation.
Good
- Free and open source under Apache 2.
- Supports C#, F#, and Visual Basic.
- Can run tests in parallel.
- Analyzers provide code analysis and fixes.
Watch out
- Version 3 requires .NET 8.0 or later, or .NET Framework 4.7.2 or later.
- Version 2 is in maintenance mode.
- No free trial is listed.
Who it suits
xUnit.net suits .NET developers writing unit tests in C#, F#, or Visual Basic. It is a fit for teams that want parallel execution and support across a range of test runners.
Verdict
xUnit.net provides test styles, fixtures, parallel execution, and broad .NET runner support at no charge. New feature work is on version 3, while version 2 receives critical bug fixes.
Plans and prices
From xUnit.net's own pricing page, checked 4 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| xUnit.net | Free | Free, open-source unit testing tool · No paid plans stated |
The facts
Each one read from xUnit.net's own pages, with the date it was checked.
What it does
- Analyzers
- xUnit.net analyzers provide code analysis and code fixes for common issues encountered by test authors and extensibility authors.checked 4 Oct 2026
- Community policy
- The project’s Code of Conduct states that it does not accept contributions made using LLMs.checked 4 Oct 2026
- Languages
- The project templates support C#, F#, and Visual Basic.checked 4 Oct 2026
- License and governance
- xUnit.net is licensed under Apache 2, is part of the .NET Foundation, and is governed by a Project Lead.checked 4 Oct 2026
- Native AOT
- The documentation describes Native AOT support for native xUnit.net runners, Microsoft Testing Platform v2 runners, and VSTest.checked 4 Oct 2026
- Parallel tests
- xUnit.net supports running tests in parallel, with v3 4.0 adding an all-tests parallel mode.checked 4 Oct 2026
- Purpose
- xUnit.net is a free, open-source, community-focused unit testing tool for C#, F#, and Visual Basic.checked 4 Oct 2026
- Runtime support
- xUnit.net v3 supports .NET 8.0 or later and .NET Framework 4.7.2 or later.checked 4 Oct 2026
- Shared test context
- Class fixtures share one object across tests in a class, and v3 adds assembly fixtures shared across test classes.checked 4 Oct 2026
- Standalone projects
- xUnit.net v3 test projects are standalone executables that can run directly.checked 4 Oct 2026
- Telemetry
- Starting with v3 build 3.2.0, NuGet packages include Microsoft.Testing.Extensions.Telemetry, and metrics collection can be disabled with TESTINGPLATFORM_TELEMETRY_OPTOUT=1.checked 4 Oct 2026
- Test runners
- xUnit.net works with the .NET SDK command-line tools, Visual Studio, Visual Studio Code, JetBrains Rider, NCrunch, Microsoft.Testing.Platform, and VSTest-compatible environments.checked 4 Oct 2026
- Test styles
- The framework supports facts for invariant conditions and theories that run against specified data.checked 4 Oct 2026
- v2 status
- Core Framework v2 is in maintenance mode, with critical bug fixes but no new feature work; new features are developed for v3.checked 4 Oct 2026
The company
- Founded
- 2006checked 28 Sep 2026





