C# unit-testing

Open-source C# projects categorized as unit-testing

Top 23 C# unit-testing Projects

unit-testing
  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. abot

    Cross Platform C# web crawler framework built for speed and flexibility. Please star this project! +1.

  7. Rubberduck

    Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).

  8. 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.

  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. vstest

    Visual Studio Test Platform is the runner and engine that powers test explorer and vstest.console.

    Project mention: How to Speak Directly in Robinhood? | news.ycombinator.com | 2024-09-09
  11. Onion-architecture-ASP.NET-Core

    WhiteApp API solution template which is built on Onion Architecture with all essential feature using .NET 8!

  12. Machine.Specifications

    Machine.Specifications is a Context/Specification framework for .NET that removes language noise and simplifies tests.

  13. List-of-Testing-Tools-and-Frameworks-for-.NET

    ✅ List of Automated Testing (TDD/BDD/ATDD/SBE) Tools and Frameworks for .NET

  14. TcUnit

    An unit testing framework for Beckhoff's TwinCAT 3

  15. DNTFrameworkCore

    Lightweight and Extensible Infrastructure for Building Web Applications - Web Application Framework

  16. Moq.Contrib.HttpClient

    A set of extension methods for mocking HttpClient and IHttpClientFactory with Moq.

  17. SystemWrapper

    .NET library for easier testing of system APIs.

  18. fluentassertions.analyzers

    Analyzers based on the FluentAssertions best practices docs

  19. entity-framework-core-mock

    Easy Mock wrapper for mocking EFCore5 DbContext and DbSet using Moq or NSubstitute

  20. PeakLimsApi

    🧬 Source-available fair-code licensed LIMS. The laboratory software you'll enjoy using.

  21. movie-search-application

    🎬 A simple movie search app, built with .Net 9, Vertical Slice Architecture and using TMDB APIs and YouTube APIs for searching and details of the movies.

  22. StoreCleanArchitecture-NET

    This is a basic project to demonstrate an introduction about the implementation of Clean Architecture on .NET

  23. UnityEntities-AutomatedTests-Sample

    A sample how to write Unit and Performance tests for a game that uses Unity.Entities

  24. qest

    A simple, cross platform, command line tool to test MSSQL procedures

  25. Testing101

    Unit Testing Workshop for Beginners

  26. 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# unit-testing discussion

Log in or Post with

C# unit-testing related posts

  • Primeiros testes unitários em C# com xUnit (parte 1)

    3 projects | dev.to | 4 Apr 2025
  • 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
  • Hacktoberfest 4/4: The final PR

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

    3 projects | dev.to | 9 Sep 2024
  • How to Speak Directly in Robinhood?

    1 project | news.ycombinator.com | 9 Sep 2024
  • A note from our sponsor - Stream
    getstream.io | 18 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 unit-testing projects in C#? This list will help you:

# Project Stars
1 xUnit 4,408
2 Cake 4,038
3 Fluent Assertions 3,806
4 AutoFixture 3,474
5 abot 2,285
6 Rubberduck 2,026
7 bUnit 1,230
8 vstest 931
9 Onion-architecture-ASP.NET-Core 914
10 Machine.Specifications 895
11 List-of-Testing-Tools-and-Frameworks-for-.NET 572
12 TcUnit 327
13 DNTFrameworkCore 317
14 Moq.Contrib.HttpClient 191
15 SystemWrapper 176
16 fluentassertions.analyzers 133
17 entity-framework-core-mock 133
18 PeakLimsApi 66
19 movie-search-application 41
20 StoreCleanArchitecture-NET 27
21 UnityEntities-AutomatedTests-Sample 9
22 qest 9
23 Testing101 8

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