The modern .NET testing framework, and the one Microsoft's templates default to.
xUnit.net rethought NUnit's design for .NET: a new instance per test for isolation, constructor and IDisposable instead of setup/teardown attributes, and theories for data-driven tests. It integrates with dotnet test, Visual Studio and every .NET CI runner.
Best for
Free and open source
Open sourceFree tier: Everything, self-hosted
What drives the bill: Free and open source. You pay in engineering time and CI minutes.
Check current pricing on .NET Foundation’s siteFigures are indicative and were last reviewed August 2026. Vendors change pricing often; confirm before you commit.
No reviews of xUnit.net yet. If you have used it in anger, yours would be the first.
If xUnit.net is not the right fit, these solve the same problem differently.