xUnit.net - Curated .NET Articles & Tutorials

Curated .NET news, articles, and tutorials about Xunit, drawn from .NET News Daily issues.

14 curated issues

How to Implement Unit Testing in .NET using xUnit with Example

Master .NET unit testing with xUnit! Learn to write effective tests, catch bugs early, and improve code quality. Includes practical examples and best practices.

Featured in Issue #439 April 22, 2026

Issue also covered: ASP.NET Core, Azure, Azure Functions, Clean Architecture, C#, Docker, EF Core, OpenAI

Read this issue →

The Best Way to Write Parameterized Tests in .NET Using xUnit (Clean, Fast, and Not Annoying)

If you want the full source code, join our community: Here

Featured in Issue #335 November 27, 2025

Issue also covered: Azure, C#, .NET 10, EF Core, Performance, Security

Read this issue →

New dotnet test Experience with Microsoft.Testing.Platform

.NET Aspire 13 — Simplified orchestration for cloud-native apps: https://aka.ms/aspire13/announcement Learn how the new platform works with popular testing frameworks like MSTest, NUnit, and xUnit.

Featured in Issue #330 November 20, 2025

Issue also covered: ASP.NET Core, .NET Aspire, Authentication, Clean Architecture, C#, Domain-Driven Design, .NET 10, .NET Core

Read this issue →

11 Battle-Tested Tips for Unit Testing CQRS Handlers (with Moq, FluentAssertions, and xUnit) — from…

If you want the full source code, join our community: Here

Featured in Issue #310 October 23, 2025

Issue also covered: ASP.NET Core, Azure, Azure DevOps, Azure Functions, CQRS, C#, Design Patterns, .NET 9

Read this issue →

Use fixtures in xUnit for shared context in unit tests

Learn how to use xUnit fixtures like IClassFixture and ICollectionFixture to share setup and context across your unit tests efficiently. The page Use fixtures in xUnit for shared context in unit tests...

Featured in Issue #309 October 22, 2025

Issue also covered: Application Insights, ASP.NET Core, Azure, Clean Architecture, C#, Domain-Driven Design, Docker, .NET 9

Read this issue →

HackerRank: Mini Max Sum Solution in C#

https://davutdursun.medium.com/hackerrank-mini-max-sum-solution-in-c-34ea7855f256

Featured in Issue #196 May 14, 2025

Issue also covered: Application Insights, Azure, Azure Functions, C#, Domain-Driven Design, Design Patterns, .NET 8, .NET 9

Read this issue →

Comprehensive Guide to Unit Testing with MSTest in C#

https://www.c-sharpcorner.com/article/comprehensive-guide-to-unit-testing-with-mstest-in-c-sharp/

Featured in Issue #173 April 11, 2025

Issue also covered: ASP.NET Core, AutoMapper, Azure, C#, Domain-Driven Design, .NET 10, .NET 8, .NET 9

Read this issue →

Choosing the Right Testing Framework for .NET: XUnit, MSTest, or NUnit?

https://medium.com/c-sharp-programming/choosing-the-right-testing-framework-for-net-xunit-mstest-or-nunit-36037822dc92?source=rss------dotnet-5

Featured in Issue #167 April 03, 2025

Issue also covered: ASP.NET Core, Azure, Blazor, C#, GitHub Copilot, .NET MAUI, Minimal APIs, MongoDB

Read this issue →

xUnit Advanced Features: Fixtures

https://medium.com/@leogjorge/xunit-advanced-features-fixtures-6b0ca4d10469

Featured in Issue #145 March 04, 2025

Issue also covered: ASP.NET Core, .NET Aspire, Azure, Cosmos DB, C#, Design Patterns, .NET 10, .NET 9

Read this issue →

Related topics