Skip to main content

xUnit.net is a developer testing framework, built to support Test Driven Development, with a design goal of extreme simplicity and alignment with framework features. Installing this package installs xunit.core, xunit.assert, and xunit.analyzers.

Total Downloads
1.1B
1,063,596,523
Published
Jan 8, 2025
1y ago

Deprecated Package Version

Reason: Legacy

This package will only be updated for security issues. All future feature work has moved onto v3. Guide for migrating from xUnit.net v2 to v3: https://xunit.net/docs/getting-started/v3/migration

Suggested alternative:xunit.v3*

Get Started

dotnet add package xunit --version 2.9.3

No framework information available.

README

About xUnit.net

xUnit.net is a free, open source, community-focused unit testing tool for the .NET Framework. Written by the original inventor of NUnit v2, xUnit.net is the latest technology for unit testing C# and F# (other .NET languages may work as well, but are unsupported). xUnit.net works with Visual Studio, Visual Studio Code, ReSharper, CodeRush, and TestDriven.NET. It is part of the .NET Foundation, and operates under their code of conduct. It is licensed under Apache 2 (an OSI approved license).

For project documentation, please visit the xUnit.net project home.

Powered by NDepend

Latest Builds

Stable Latest CI (how to use) Build status
v3 core framework
v2 core framework
xunit.analyzers
xunit.runner.visualstudio

For complete CI package lists, please visit the feedz.io package search. A free login is required.

Downloads by Version

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

NuGet marks this package as deprecated and points to xunit.v3 as an alternative.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.