Oct 21, 2025 · 3 min read · Unit testing is one of the most important parts of modern software development.In this article, you’ll learn how to write unit tests in .NET Core using xUnit, Moq, and FluentAssertions, step-by-step — with a real example from a blog app. 1. Creating...
Join discussion
Jul 8, 2025 · 5 min read · Los tests unitarios son fundamentales para mantener la calidad del código en cualquier proyecto de software. En el ecosistema .NET Core, xUnit se ha convertido en una de las herramientas más populares y potentes para implementar pruebas unitarias. En...
Join discussion
Mar 22, 2025 · 3 min read · With the arrival of xUnit 3, we have gained new opportunities to streamline and enhance our testing workflows by leveraging custom extensions. Extensions in xUnit 3 allow us to inject additional behaviour directly into the testing lifecycle, tailorin...
Join discussion
Jan 3, 2025 · 3 min read · xUnit is a popular unit testing framework for .NET applications, known for its simplicity and flexibility, especially in how it manages test fixtures. In this blog, we'll dive into the concept of Class Fixtures and how they interact with test classes...
Join discussion
Jul 1, 2024 · 13 min read · Welcome to the third article in the "Mastering C#" series. In this article, we will explore unit testing in C# using xUnit, a popular and flexible framework for .NET that simplifies writing and running tests. xUnit supports modern features like param...
Join discussion
Apr 16, 2024 · 7 min read · Service Bus Series - Part 3 The previous post, Part 2: Authentication and Sending to a Queue, covered authenticating to and writing to a Service Bus Queue. To do this we used the QueueSender background service. While this worked, it begs the question...
Join discussion
Oct 7, 2023 · 9 min read · This is the fifth post in our Unit Testing in .NET Core series! In the previous post, we looked at writing better assertions in our unit tests. In this post, we will explore the concept of mocking in unit testing using xUnit, discuss different types ...
Join discussion
Oct 1, 2023 · 6 min read · This is the fourth post in our Unit Testing in .NET Core series! In the previous post, we looked at parameterized unit testing. In this blog post, we will explore how to enhance your assertion capabilities in .NET Core unit testing, using the xUnit t...
Join discussion
Sep 20, 2023 · 4 min read · Writing setup code for unit tests can be a cumbersome activity. Especially in legacy codebases where many tests may be missing, or unreliable, or when the unit being tested is larger than it would be given sufficient time and resources to refactor it...
Join discussion