C# Xunit

Open-source C# projects categorized as Xunit

Top 19 C# Xunit Projects

  1. xUnit

    xUnit.net is a free, open source, community-focused unit testing tool for .NET.

    Project mention: Primeiros testes unitários em C# com xUnit (parte 1) | dev.to | 2025-04-04
  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. Cake

    :cake: Cake (C# Make) is a cross platform build automation system.

    Project mention: Learn Makefiles | news.ycombinator.com | 2025-06-20
  4. Fluent Assertions

    A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, as well as .NET Core 2.1, .NET Core 3.0, .NET 6, .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.

    Project mention: Fluent Assertions 8: Corporate License Update | dev.to | 2025-01-17

    The new commercial license costs $129.95 per developer per year. This pricing structure impacts organizations, especially those with larger development teams or multiple projects utilizing Fluent Assertions.

  5. AutoFixture

    AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximize maintainability. Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.

    Project mention: Why I moved from AutoFixture to Bogus for test data generation for C#/xUnit tests | dev.to | 2025-07-05

    AutoFixture and Bogus are both well-known libraries for generating test data in C# tests. AutoFixture is, well, dated whereas Bogus is state of the art.

  6. bUnit

    bUnit is a testing library for Blazor components that make tests look, feel, and runs like regular unit tests. bUnit makes it easy to render and control a component under test’s life-cycle, pass parameter and inject services into it, trigger event handlers, and verify the rendered markup from the component using a built-in semantic HTML comparer.

  7. LightBDD

    BDD framework allowing to create easy to read and maintain tests.

  8. snapshooter

    Snapshooter is a snapshot testing tool for .NET Core and .NET Framework

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. Xunit.Gherkin.Quick

    BDD in .NET Core - using Xunit and Gherkin (compatible with both .NET Core and .NET)

  11. fluentassertions.analyzers

    Analyzers based on the FluentAssertions best practices docs

  12. TestExamplesDotnet

    Showing how you can easily setup fast and easy to run more complex tests such as api tests or browser tests in .NET

  13. xRetry

    Retry running tests via xUnit, Specflow and Reqnroll

  14. xunit-dependency-injection

    :fire: A small library to help .NET developers leverage Microsoft's dependency injection framework in their Xunit-powered test projects

  15. tic-tac-toe-csharp-playground

    Another fun project just to update what I know about C# :video_game:

  16. testcontainers-dotnet

    dotnet port of testcontainers-java (by isen-ng)

  17. DbSample

    Example of automated tests against SQL Server with EF Core

  18. EnvironmentDetector

    Library that provides a simple way to detect whether your code is running in a test environment or not. It currently supports detecting MSTest, NUnit, and xUnit test frameworks.

  19. GenWrap

    Open source, source-generated unit testing extensions for .NET

  20. tdd

    Test-Driven Development: A Comprehensive Guide (by aelassas)

    Project mention: Test-Driven Development: A Beginner's Guide | dev.to | 2024-10-29

    You can find test results on GitHub Actions.

  21. CaptureLogsInUnitTests

    Blog post

  22. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C# Xunit discussion

Log in or Post with

C# Xunit related posts

  • TDD helper in c#

    2 projects | dev.to | 23 Jan 2025
  • Fluent Assertions 8: Corporate License Update

    5 projects | dev.to | 17 Jan 2025
  • From Bug Fixes to Best Practices: My Open Source Contributions to ChatCraft and xUnit

    3 projects | dev.to | 20 Nov 2024
  • Testcontainers: Testes de Integração em Containers

    3 projects | dev.to | 9 Sep 2024
  • Optimizing C# code analysis for quicker .NET compilation

    4 projects | dev.to | 14 Nov 2023
  • Integration testing in Umbraco 10+: Validating document types

    1 project | dev.to | 3 Oct 2023
  • Comprehensive Unit Testing: A Line-by-Line Approach

    2 projects | dev.to | 12 Sep 2023
  • A note from our sponsor - Stream
    getstream.io | 15 Jul 2025
    Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure. Learn more →

Index

What are some of the best open-source Xunit projects in C#? This list will help you:

# Project Stars
1 xUnit 4,405
2 Cake 4,034
3 Fluent Assertions 3,808
4 AutoFixture 3,470
5 bUnit 1,230
6 LightBDD 415
7 snapshooter 319
8 Xunit.Gherkin.Quick 212
9 fluentassertions.analyzers 133
10 TestExamplesDotnet 69
11 xRetry 67
12 xunit-dependency-injection 56
13 tic-tac-toe-csharp-playground 38
14 testcontainers-dotnet 35
15 DbSample 10
16 EnvironmentDetector 9
17 GenWrap 8
18 tdd 7
19 CaptureLogsInUnitTests 3

Sponsored
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io