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. Learn more →
Top 23 C# unit-testing Projects
-
-
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.
-
Project mention: We enforce .NET codingstandards to improve productivity | news.ycombinator.com | 2025-08-08
I've met teams that strongly prefer Cake [1] and it seems well maintained.
Personally, I think there's too much baby in the MSBuild bathwater unfortunately and too much of the ecosystem is MSBuild to abandon it entirely. That said, I think MSBuild has improved a lot over the last few years. The Sdk-Style .csproj especially has been a great improvement that sanded a lot of rough edges.
[1] https://cakebuild.net/
-
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.
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.
-
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-05AutoFixture 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.
-
abot
Cross Platform C# web crawler framework built for speed and flexibility. Please star this project! +1.
-
-
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.
-
Sevalla
Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
-
vstest
Visual Studio Test Platform is the runner and engine that powers test explorer and vstest.console.
-
Onion-architecture-ASP.NET-Core
WhiteApp API solution template which is built on Onion Architecture with all essential feature using .NET 8!
-
Machine.Specifications
Machine.Specifications is a Context/Specification framework for .NET that removes language noise and simplifies tests.
-
List-of-Testing-Tools-and-Frameworks-for-.NET
✅ List of Automated Testing (TDD/BDD/ATDD/SBE) Tools and Frameworks for .NET
-
-
DNTFrameworkCore
Lightweight and Extensible Infrastructure for Building Web Applications - Web Application Framework
-
Moq.Contrib.HttpClient
A set of extension methods for mocking HttpClient and IHttpClientFactory with Moq.
-
-
entity-framework-core-mock
Easy Mock wrapper for mocking EFCore5 DbContext and DbSet using Moq or NSubstitute
-
-
-
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.
-
StoreCleanArchitecture-NET
This is a basic project to demonstrate an introduction about the implementation of Clean Architecture on .NET
-
UnityEntities-AutomatedTests-Sample
A sample how to write Unit and Performance tests for a game that uses Unity.Entities
-
-
Mecha
Mecha is a library designed to test your code in ways you probably never thought of before. It automatically finds edge cases and exceptions in your code with no input needed. Just point it at a class or method and fire away. It's even better than a cat laying on your keyboard at finding weird data for your tests. (by JaCraig)
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
C# unit-testing discussion
C# unit-testing related posts
-
Primeiros testes unitários em C# com xUnit (parte 1)
-
TDD helper in c#
-
Fluent Assertions 8: Corporate License Update
-
From Bug Fixes to Best Practices: My Open Source Contributions to ChatCraft and xUnit
-
Hacktoberfest 4/4: The final PR
-
Testcontainers: Testes de Integração em Containers
-
How to Speak Directly in Robinhood?
-
A note from our sponsor - InfluxDB
www.influxdata.com | 1 Sep 2025
Index
What are some of the best open-source unit-testing projects in C#? This list will help you:
# | Project | Stars |
---|---|---|
1 | xUnit | 4,444 |
2 | Cake | 4,065 |
3 | Fluent Assertions | 3,807 |
4 | AutoFixture | 3,486 |
5 | abot | 2,289 |
6 | Rubberduck | 2,039 |
7 | bUnit | 1,243 |
8 | vstest | 936 |
9 | Onion-architecture-ASP.NET-Core | 918 |
10 | Machine.Specifications | 896 |
11 | List-of-Testing-Tools-and-Frameworks-for-.NET | 574 |
12 | TcUnit | 339 |
13 | DNTFrameworkCore | 317 |
14 | Moq.Contrib.HttpClient | 191 |
15 | SystemWrapper | 176 |
16 | entity-framework-core-mock | 133 |
17 | fluentassertions.analyzers | 132 |
18 | PeakLimsApi | 69 |
19 | movie-search-application | 41 |
20 | StoreCleanArchitecture-NET | 27 |
21 | UnityEntities-AutomatedTests-Sample | 9 |
22 | qest | 9 |
23 | Mecha | 8 |