All posts with Tag xUnit

Preview image blogpost
  • 11/10/2025
  • 1 minute read

Capturing Console Output in xUnit.v3

In xUnit v2 ITraceOutputHelper was needed (and injected) to make the console output inside your production code visible inside a test - in v3 it is easier: CaptureConsoleAttribute

Read the whole article

Preview image blogpost

Adding test description for data-driven tests in xUnit

Often times, you find yourself in writing data-driven tests in xUnit (like Theory tests) and you want to add a description to each test case. Let's explore how to do that.

Read the whole article

Preview image blogpost

xUnit v3 and some stuff about TUnit

I know that there is a lot of fuse about TUnit and I am here writing about xUnit. I might cover TUnit in the future, but for now, the topic is the v3 prerelease of xUnit!

Read the whole article

Preview image blogpost

Typesafety in xUnit with TheoryData<T>

I recently discovered this small but very useful utility in xUnit: TheoryData<T>.

Read the whole article

Preview image blogpost

Why I like and prefer xUnit

In almost all of my projects, I only use xUnit, and here is a small love letter. Especially the one fact I do think makes it a good choice!

Read the whole article

An error has occurred. This application may no longer respond until reloaded.Reload x