Skip to main content
Code Barrel

Code Barrel

Helping beginner & intermediate coders do more, sooner.

ASP.NET Web API
Clean Architecture, Aggregate, xUnit Testing, EF Core, Fluent API, MediatR, CQRS, and more!
Basic Unit Tests with xUnit

Basic Unit Tests with xUnit

NOTE: This post is a draft. Please leave lots of feedback!

Testing your code lets you easily find errors, enforce a certain set of rules when working with others, and makes you think twice before making a potentially breaking change. If you haven't already, you should do some reading on TDD (Test Driven Development). It isn't a prerequisite for understanding this post, but helps you be a better developer by making it hard to do the wrong thing.


Broderick WestropeAbout 4 minxUnitTestingFluent Assertions