Newsletter

Get the Thursday issue.

One focused C# tutorial. Free, and easy to leave.

  • 3,000+ engineers
  • 100+ tutorials

Writing

All posts

Practical C#, .NET, and ASP.NET Core tutorials.

8 posts matching “test”

Sep 17, 2026 · 6 min

Respawn for Integration Tests in ASP.NET Core

Shared database state makes integration tests flaky. Respawn resets tables between tests so WebApplicationFactory and Testcontainers stay fast, isolated and reliable.

Aug 13, 2026 · 6 min

Integration Tests in ASP.NET Core

Unit tests miss the full request pipeline. Integration tests with WebApplicationFactory, Testcontainers and Respawn verify your ASP.NET Core API against a real PostgreSQL database.

Jul 2, 2026 · 4 min

Clean Architecture in One Project

You do not need a class library per layer to follow Clean Architecture. One ASP.NET Core project, clear namespaces and NsDepCop or architecture tests can enforce the same dependency rules as a multi-project solution.

Mar 26, 2026 · 7 min

Mapping with Facets in .NET

Facet is a powerful source generator tool that can help you improve your mapping code. It's easy to use, test and integrate with other libraries.

Apr 16, 2025 · 5 min

Parameterized Tests with xUnit in .NET

Parameterized tests are a powerful way to reduce repetition and improve clarity in your unit tests.

Mar 6, 2025 · 6 min

Unit Testing using xUnit

Unit testing is essential for maintaining code stability, preventing regressions and ensuring confidence in changes.

Jan 16, 2025 · 5 min

Architecture Tests in .NET

Introducing architectural tests is an effective way to enforce rules and prevent violations, reducing the risk of technical debt.

Oct 10, 2024 · 5 min

TUnit - The Future of Testing in .NET

TUnit is a modern, flexible, and fast testing framework for .NET 8 and beyond. It promises more control over setup, execution and style of tests.

The next issue lands Thursday.

Join 3,000+ .NET engineers. Free, focused, and easy to leave.