xUnit is the most widely used .NET test framework (MSTest and NUnit are alternatives). Pair it with FluentAssertions/Shouldly for readable assertions and Moq/NSubstitute for test doubles. xUnit feature Purpose [Fact] a single test [Theory] + [InlineData] / [MemberData] data-driven tests Constructor / IDisposable per-test set-up / tear-down IClassFixture<T> share expensive set-up across a class Assert.ThrowsAsync<T> expected exceptions Commands dotnet new xunit -n MyApp.Tests · dotnet add reference ../MyApp · dotnet test · dotnet test --collect:"XPlat Code Coverage". For ASP.NET Core integration tests use WebApplicationFactory<Program> to run the real pipeline in memory.