testing
C# and .NET Unit Testing Articles, Tutorials & News
C# and .NET Unit Testing articles, tutorials, and news from the DotNetNews archive.
157 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
-
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.
-
No more regressions with Snapshot Tests in C# using Verify: a practical guide
Code4IT Issue #493
Snapshot Tests are an uncommon type of test that focuses on checking that no regressions were introduced after a code refactoring. Let’s learn how they work and how to use the Verify NuGet libra...
-
Repository Pattern in C#: Build Clean, Testable, and Maintainable .NET Applications
Medium Issue #490
Learn how the Repository Pattern works in modern .NET
-
GitHub Copilot Generated Our .NET Tests. It Missed What Mattered Most
Medium Issue #489
There has been plenty of discussion recently about AI replacing parts of software testing, so we decided to see how far we could actually…
-
The mock-as-private-field pattern only half-works the way you think
Medium Issue #488
I ran into this recently while cleaning up our test classes at work, and it’s a good example of how a pattern can be “correct” in one…
-
Mastering .NET Interviews – Part 9: Testing & Performance
C# Corner Issue #487
Master .NET interviews: Learn unit/integration testing, mocking, DI, and performance tuning (caching, async, profiling).
-
AI-Powered Test Case Generation for Enterprise .NET Applications
C# Corner Issue #485
Automate .NET test case generation with AI. Enhance coverage, reduce errors, and accelerate enterprise application delivery.
-
How to Simplify ASP.NET Core API Testing
Medium Issue #484
When developing applications, we strive to avoid code duplication. We extract commonly used code into libraries and use DI containers to…
-
Learning Playwright with C#: My Journey Implementing a DI-Driven Test Framework
Medium Issue #481
Following Karthik KK’s Playwright course, I rebuilt a DI-driven automation framework and documented the lessons I learned along the way.
-
GitHub Copilot Agent for Unit Tests: My Real-World Spargine Experiment
dotNetTips.com Issue #473
After experimenting with the GitHub Copilot Agent during the 2026 Microsoft MVP Summit, the author faced numerous challenges, including code deletion, slow performance, and inconsistent adherence to c...
-
ASP.NET Core 10 Web API CRUD with EF Core - Complete .NET 10 Tutorial
codewithmukesh Issue #473
Build a production-ready .NET 10 Web API with EF Core 10 and PostgreSQL. CRUD operations, DDD, Minimal APIs, Scalar, code-first migrations, and best practices.
-
How to Implement Unit Testing in .NET using xUnit with Example
C# Corner Issue #439
Master .NET unit testing with xUnit! Learn to write effective tests, catch bugs early, and improve code quality. Includes practical examples and best practices.
-
Testing Needs a Seam, Not an Interface
codeopinion.com Issue #437
In my last video, I said that clean architecture was killing your velocity. And man, you guys had thoughts. The number one pushback, the hill a lot of people were willing to die on, was testing. And I...
-
Building an Open Source Assertion Library for .NET
Medium Issue #435
Fluent Assertions did a great deal for .NET testing. For a long time, it made test code feel far more natural than it had before…
-
On .NET Live - Imposter: A Mocking Library
YouTube Issue #427
️ Featuring: Bitchiko Tchelidze (https://github.com/themidnightgospel/Imposter), Maira Wenzel, Cam Soper, Katie Savage https://github.com/themidnightgospel/Imposter
-
From QA Hand-Offs to Test-First .NET: The C# Developer’s Testing Fundamentals
Medium Issue #427
If you’ve written C# for more than a few months, you’ve already met the QA wall.
-
The new Microsoft Testing Platform for .NET:
Medium Issue #425
Testing in .NET has historically been associated with VSTest. That choice was reasonable for a long time because VSTest offered broad…
-
Speed Up .NET CI with Test Sharding
Meziantou's blog Issue #422
A shard is a deterministic subset of your test suite. Test sharding means splitting one long test run into multiple smaller runs, and executing them in parallel in CI. Instead of waiting for one job t...
-
SignalR scale out and C# performance
DotNetNews Issue #417
This issue covers Redis-backed SignalR scaling, C# performance tuning, ASP.NET Core middleware and DI lifetimes, plus CQRS, OOP, and readiness checks.