testing
C# and .NET Unit Testing Articles, Tutorials & News
C# and .NET Unit Testing articles, tutorials, and news from the DotNetNews archive.
175 articles Updated Page 2 of 7
Browse additional C# and .NET Unit Testing articles from the DotNetNews archive.
C# and .NET Unit Testing articles
Page 2 of 7
Newest first
-
Microsoft.Testing.Platform: Detecting Flaky Tests in .NET CI/CD Pipelines
C# Corner Issue #540
Learn how Microsoft.Testing.Platform can help detect flaky tests in .NET CI/CD pipelines using repeatable test execution, diagnostics, reporting, and automated analysis.
-
Benchmarking AI-Generated Unit Tests Against Human-Written Tests
C# Corner Issue #540
Learn how to benchmark AI-generated unit tests against human-written tests using code coverage, mutation scores, defect detection, false positives, readability, and maintainability.
-
Test what you ship: MSTest and Native AOT
Microsoft Dev Blogs Issue #538
If you ship an application with Native AOT, a green managed test run leaves a gap. Native AOT compiles ahead of time, removes unused code, and requires alternatives to runti
-
Find and Fix Failing Tests Faster in VS Code
YouTube Issue #533
Got a failing test in CI? See how VS Code’s Test Explorer makes it easy to filter your tests, find the failure, debug the issue, view test results, and rerun the test—all without leaving VS Code. #vsc...
-
Building Agentic QA Pipelines with Browser Automation and .NET
C# Corner Issue #531
Learn how to build agentic QA pipelines with Playwright for .NET and AI agents, including browser automation, agent memory, tool control, execution limits, and testing best practices.
-
Mock It or Don’t? How to Decide What to Mock in Unit Tests
Medium Issue #527
When we start writing unit tests in .NET, we quickly run into an important question:
-
Testcontainers: Real Dependencies in Disposable Docker Containers
Medium Issue #527
A focused, mechanics-level guide to Testcontainers — the library that programmatically starts and stops real Docker containers as part of…
-
xUnit: The Modern .NET Unit Testing Framework
Medium Issue #525
A practical guide to xUnit — the most widely used unit testing framework for .NET — covering test structure, assertions, fixtures and…
-
Building Agentic QA Pipelines with Browser Automation and .NET
C# Corner Issue #524
Build robust agentic QA pipelines in .NET. Separate AI reasoning from deterministic browser execution for faster, more reliable testing.
-
Snapshot testing in .NET with Meziantou.Framework.SnapshotTesting
Meziantou's blog Issue #523
Snapshot testing is a technique where the output of a function or component is serialized and saved to disk the first time the test runs. On every subsequent run, the library re-serializes the output ...
-
Testing Global .NET Test Timeouts with Microsoft.Testing.Platform
C# Corner Issue #523
Learn how global test timeouts and maximum-failure controls in Microsoft.Testing.Platform can improve CI reliability and prevent stalled or excessive test runs.
-
Preventing Architecture Drift with Executable Dependency Rules
C# Corner Issue #522
Prevent architecture drift with executable dependency rules. Turn architectural decisions into automated tests for C# applications using ArchUnitNET.
-
Unit Testing Enterprise Multi-Agent LangGraph Systems
C# Corner Issue #517
Master unit testing for enterprise LangGraph systems. Learn to mock async tools, LLMs, and test state persistence for robust AI deployments.
-
Control String Comparison in .NET JSON Assertions
blog.devgenius.io Issue #517
JSON assertions usually require exact values, but casing is not always meaningful. For example, an API might return "ACTIVE" while a test… Continue reading on Dev Genius »
-
The test pyramid, not the ice-cream cone: 1,880 fast tests, zero Docker
Medium Issue #516
A suite you run constantly is worth more than a suite you run nervously. Here is how MMCA.Common keeps 1,880 tests fast enough to live in…
-
Make Your .NET Tests Insanely Faster
YouTube Issue #516
Get every Dometrain 30% off with code HANDSON30: https://dometrain.com/courses/?ref=nick-chapsas&promo=youtube&coupon_code=HANDSON30 Hello, everybody. I'm Nick, and in this video, I will talk about a ...
-
Write your first architecture fitness test
Medium Issue #515
Your Clean Architecture diagram is a hope, not a guarantee, until something fails the build when it is violated. Here is how to add…
-
Automating Software Architecture Validation with ArchUnitNET
C# Corner Issue #515
Automate software architecture validation with ArchUnitNET for ASP.NET Core. Ensure clean architecture, detect violations early, and integrate into CI/CD.
-
From generated code to trusted code with a unit-test agent
Microsoft Dev Blogs Issue #512
A common request to a coding agent is only one line: Generate unit tests. That request leaves important questions open. Which code needs tests? Which test framework does the project use? Where should ...
-
Playwright Testing for ASP.NET Core Applications: A Practical Guide
C# Corner Issue #508
Master Playwright for ASP.NET Core E2E testing. Learn setup, writing tests, best practices, and CI/CD integration for reliable web app validation.
-
Testing Minimal APIs: The Complete Playbook
Medium Issue #507
Minimal APIs threw out the controller ceremony — which also means the old “just unit test the controller” playbook doesn’t fully apply…
-
Delete AutoMapper: explicit, compile-time DTO mapping that you can actually test
Medium Issue #507
Reflection-based mappers feel like they save you work until the day a renamed property silently maps to null in production. Here is the…
-
How to Test Vertical Slice Architecture
Milan's .NET Weekly Issue #495
The most common question I get about vertical slice architecture isn't about structure. It's "where do my tests go?" The layered-architecture testing habits (mock the repository, test the service) don...
-
Using AI to Generate Better Unit Tests for Bug Reproduction in .NET
blog.stackademic.com Issue #495
Turn bug reports into reliable unit tests using the AI Continue reading on Stackademic »
-
Test Automation Best Practices with Microsoft Playwright
C# Corner Issue #494
Master Microsoft Playwright with best practices for reliable, scalable, and maintainable test automation. Boost confidence and speed.