Capturing Console Output in xUnit.v3
Explains how to capture console output in xUnit.v3 tests using the new CaptureConsoleAttribute assembly-level attribute.
Explains how to capture console output in xUnit.v3 tests using the new CaptureConsoleAttribute assembly-level attribute.
A comparison of the new TUnit framework with xUnit and NUnit for C# unit testing, covering features like parallel execution and a unified [Test] attribute.
A developer discusses migrating from xUnit to the new TUnit testing framework for .NET, covering its features, performance benefits, and the conversion process.
Explains how to add descriptive names to data-driven test cases in xUnit by overriding the ToString() method in test data records.
Explains how to use xUnit's TheoryData<T> for type-safe parameterized tests in C#, replacing untyped IEnumerable<object[]> data.
A tutorial on creating and implementing unit tests for C# projects, covering basics, benefits, and setup with MSTest, xUnit, or nUnit.
A guide to speeding up .NET database integration tests using the Respawn library and xUnit fixtures to manage database state.
A developer explains why they prefer xUnit over other .NET testing frameworks, focusing on its test isolation design.
A guide to creating an XUnit fixture in JetBrains Rider that counts test runs until failure, helping diagnose intermittent unit test issues.
A guide to using AutoFixture with xUnit to generate anonymous test data, making unit tests more robust and maintainable.
A tutorial on testing ASP.NET Core Minimal APIs using xUnit, covering unit and integration tests for endpoints.
A guide to setting up automated end-to-end (E2E) tests for Azure Functions locally and in CI/CD pipelines, using xUnit and Azure Functions Core Tools.
A guide to writing integration tests for C# Web APIs using Microsoft.AspNetCore.Mvc.Testing, xUnit, and FluentAssertions.
A guide to unit testing .NET project templates created with `dotnet new`, including a helper library and practical xUnit examples.
A tutorial on unit testing an ASP.NET Core Web API controller using XUnit and FakeItEasy, covering mocking dependencies and test structure.
Introduces a NuGet package for writing application logs to xunit test output, aiding in debugging .NET Core tests.
A guide to unit testing ILogger in ASP.NET Core, covering the challenge of mocking extension methods and providing practical solutions.
A practical guide to implementing Test Driven Development (TDD) by building a message service with .NET, XUnit, and Moq.
A developer's experience using xUnit Roslyn Analyzers to improve unit test quality and fix warnings during a Visual Studio upgrade.
A guide to fixing flaky tests caused by time dependencies using a static SystemDateTime helper class in .NET.