
About xUnit.net
xUnit.net is a unit testing tool for .NET developers who write tests in C#, F# or Visual Basic. It is free, open source and built around a community of contributors.
What it does
xUnit.net runs your unit tests from the .NET command line, Visual Studio, Visual Studio Code or JetBrains Rider. Tests are ordinary methods marked with attributes such as Fact, and the results show which checks passed and which failed. Version 3 supports .NET 8.0 and later, as well as .NET Framework 4.7.2 and later, so it fits both new and older projects.
Key features
- Runs with the .NET SDK command line tools
- Works in Visual Studio and Visual Studio Code
- Project templates for new test projects
- Works with Microsoft.Testing.Platform and VSTest
Who it's for
Developers and teams who already build .NET applications and want a standard test framework with good editor support and a simple way to start.
Pricing and good to know
xUnit.net is free and licensed under Apache 2.0. It is part of the .NET Foundation and follows a code of conduct. JetBrains Rider support is provided by JetBrains, and NCrunch support comes from Remco Software.
Highlights
- Write tests as attributed methods in C#, F# or Visual Basic
- Run tests from the .NET CLI, Visual Studio or Rider
- Create a new test project from a template
- Support for .NET 8 and .NET Framework 4.7.2 and later












