Unit Testing in .NET: xUnit, NUnit, MSTest and Mocking
A practical guide to unit testing in .NET with xUnit v3, NUnit, MSTest, Microsoft.Testing.Platform, mocking with NSubstitute and Moq, and assertions.
Ship with confidence: unit and integration testing, Testcontainers, CI/CD with GitHub Actions, MSBuild, NuGet packaging and code-quality analyzers for .NET.
6 guides
Fast feedback loops make great teams. These guides cover the engineering practices around your code: unit testing frameworks and mocking, realistic integration tests with WebApplicationFactory and Testcontainers, and CI/CD pipelines with GitHub Actions and Azure DevOps.
You will also learn to control your builds with MSBuild, Directory.Build.props and Central Package Management, publish high-quality NuGet packages, and enforce consistent code quality with Roslyn analyzers and EditorConfig.
A practical guide to unit testing in .NET with xUnit v3, NUnit, MSTest, Microsoft.Testing.Platform, mocking with NSubstitute and Moq, and assertions.
Integration test ASP.NET Core with WebApplicationFactory, real databases via Testcontainers, Respawn resets, auth mocking and Aspire's testing builder.
Build production-ready .NET CI/CD pipelines with GitHub Actions and Azure Pipelines: caching, matrix builds, containers, OIDC and approvals.
Master MSBuild, SDK-style projects, Directory.Build.props, Central Package Management, multi-targeting, the .slnx format and binary logs.
Publish high-quality NuGet packages: metadata, SemVer, SourceLink, deterministic builds, trusted publishing, NuGet Audit and package signing.
Enforce .NET code quality with built-in analyzers, EditorConfig, TreatWarningsAsErrors, dotnet format and third-party static analysis tools.
No matches. Try the site search.