testing
C# and .NET Unit Testing Articles, Tutorials & News
C# and .NET Unit Testing articles, tutorials, and news from the DotNetNews archive.
128 articles Updated Page 3 of 6
Browse additional C# and .NET Unit Testing articles from the DotNetNews archive.
C# and .NET Unit Testing articles
Page 3 of 6
Newest first
-
11 Battle-Tested Tips for Unit Testing CQRS Handlers (with Moq, FluentAssertions, and xUnit) — from…
medium.com Issue #310
If you want the full source code, join our community: Here
-
Use fixtures in xUnit for shared context in unit tests
roundthecode.com Issue #309
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...
-
Mocking HTTP Calls with HttpClientFactory in .NET
medium.com Issue #305
Test External APIs Without the Internet: HttpClientFactory + Moq Explained — Build isolated and deterministic unit tests for your .NET app.
-
Integrating GitHub Copilot with Playwright
c-sharpcorner.com Issue #303
This article provides a step-by-step approach to integrating Copilot into your Playwright workflow, covering IDE setup, resilient locators, Page Object Model implementation, CI/CD integration with Git...
-
ASP.NET Community Standup - Vibe coding a C# MCP server
youtube.com Issue #292
Unit testing for a .NET Web API project.
-
Types of Unit Tests in C# — Master Testing Like a Pro
medium.com Issue #289
Complete guide to unit testing in C#. Learn all types of tests: basic unit tests, mocks, parametrised tests, async testing, property-based…
-
C# Tip: injecting and testing the current time with TimeProvider and FakeTimeProvider
code4it.dev Issue #280
Dates used to be difficult to test. But with TimeProvider and FakeTimeProvider, everything becomes possible!
-
Handle Nulls Like a Pro: 6 Smarter Alternatives to Null-Forgiving in C#
medium.com Issue #280
Using the null-forgiving operator (!) too often usually points to a problem. Here are safer and cleaner ways to avoid it.
-
Adding TDD to Legacy .NET Code Without Breaking Production
medium.com Issue #278
How to gradually introduce tests to existing Windows Forms, WPF, and WCF applications when “don’t break anything” is your #1 priority
-
Beyond the Code: Why Testing in .NET is More Than Bug Hunting
medium.com Issue #275
When developers hear the word testing, the immediate thought is often about catching bugs. But in reality, testing is less about hunting…
-
How to use IHttpClientFactory and WireMock.NET together using Moq
medium.com Issue #275
WireMock.NET is awesome for faking out HTTP calls.
-
Life Tracker — A .NET App 3: NUnit testing
jackymlui.medium.com Issue #273
It’s been a while since I last published a piece on LinkedIn. I wrote the draft of this post more than a month ago. Life in the new job…
-
C# Complete Beginner Tutorial — Part 3
blog.devgenius.io Issue #272
Welcome back to the C# Complete Beginner Tutorial Series-Part3. If you have followed along with Part 1 and Part 2, by now you should be… Continue reading on Dev Genius »
-
Enhance your CLI testing workflow with the new dotnet test
devblogs.microsoft.com Issue #272
Learn how .NET 10 transforms dotnet test with native Microsoft.Testing.Platform integration, delivering better performance and enhanced diagnostics. The post Enhance your CLI testing workflow with th...
-
Selenium WebDriver Overview
c-sharpcorner.com Issue #260
Selenium WebDriver is a powerful tool for automating web browser interactions. It enables cross-browser testing, supports multiple languages, and is essential for robust and scalable test automation f...
-
How to Write Tests in C# in 5 Steps & TDD Explained
c-sharpcorner.com Issue #260
Test-Driven Development (TDD) is a software approach where tests are written before code. It ensures clean, maintainable code by following a red-green-refactor cycle and improves software quality thro...
-
How to integration test exception handlers in ASP.NET Core
blog.elmah.io Issue #259
Global exception handling in ASP.NET Core is one of those features you often just set and forget. Unless you realize that your error log is awfully quiet, applications with failing or misconfigured ex...
-
-
.NET Automated Testing
belitsoft.com Issue #250
https://belitsoft.com/dot-net-automated-testing
-
Mock Smarter with WireMock.Net
medium.com Issue #247
https://medium.com/@technicalcolumns/mock-smarter-with-wiremock-net-31a60c2b4d6e
-
How to Write Architecture Tests for the Clean Architecture in .NET 9
medium.com Issue #245
https://medium.com/@michaelmaurice410/how-to-write-architecture-tests-for-the-clean-architecture-in-net-9-db9e1d3443c9
-
Scaling APIs and .NET 9 architecture
DotNetNews Issue #243
This issue covers API scaling, .NET 9 architecture, Blazor state management, security, tracing, and Copilot customization for practical teams.
-
MCP C# SDK, Redis, JWT and SQL Server Performance
DotNetNews Issue #240
A varied .NET roundup covering the MCP C# SDK, Redis caching, JWT auth, SQL Server indexing, testing, and performance tuning.
-
Report All JSON assertion errors in-one-shot for .NET
medium.com Issue #239
https://medium.com/@lateapexearlyspeed/report-all-json-assertion-errors-in-one-shot-for-net-2f4ee5175ca6
-
Why Bad Tests Are Worse Than No Tests — A .NET Developer’s Perspective
medium.com Issue #239
https://medium.com/@MatinGhanbari/why-bad-tests-are-worse-than-no-tests-a-net-developers-perspective-0a23f1069a8e?source=rss------dotnet-5