Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →
Top 23 C# unit-testing Projects
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
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.
-
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.
-
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.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
Machine.Specifications
Machine.Specifications is a Context/Specification framework for .NET that removes language noise and simplifies tests.
-
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 5!
-
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
-
SimpleStubs
*SimpleStubs* is a simple mocking framework that supports Universal Windows Platform (UWP), .NET Core and .NET framework. SimpleStubs is currently developed and maintained by Microsoft BigPark Studios in Vancouver. (by microsoft)
-
movie-search-application
🎬 A simple movie search app, built with .Net 7, 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
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Several well-known NuGet packages such as xUnit.net, FluentAssertions, StyleCop, Entity Framework Core, and others include by default a significant number of Roslyn analyzers. They help you adhere to the conventions and best practices of these libraries.
Yes, it does feel like some of the "standard stuff" in other more nuanced languages are missing (especially miss AutoFixture ngl). Some of those are a conscious decison by the golang team for example.
Project mention: Rubberduck – A free and open-source VBIDE add-in | news.ycombinator.com | 2024-01-25
There's a neat little package called EntityFrameworkCoreMock that supports the use case. Sure, you can hit some issues with more complex configuration or queries, but it can cover a lot of cases out of the box. Since we use Moq at work and the context/dbset mocks inherit from Mock, we are able to setup almost everything we need.
Several well-known NuGet packages such as xUnit.net, FluentAssertions, StyleCop, Entity Framework Core, and others include by default a significant number of Roslyn analyzers. They help you adhere to the conventions and best practices of these libraries.
C# unit-testing related posts
- Optimizing C# code analysis for quicker .NET compilation
- Integration testing in Umbraco 10+: Validating document types
- Comprehensive Unit Testing: A Line-by-Line Approach
- FluentValidation in .NET
- Running a XUnit test with C#?
- Integration tests for AWS serverless solution
- NUnit vs XUnit for .net6+ microservices
-
A note from our sponsor - InfluxDB
www.influxdata.com | 25 Apr 2024
Index
What are some of the best open-source unit-testing projects in C#? This list will help you:
Project | Stars | |
---|---|---|
1 | xUnit | 4,020 |
2 | Cake | 3,818 |
3 | Fluent Assertions | 3,585 |
4 | AutoFixture | 3,219 |
5 | abot | 2,204 |
6 | Rubberduck | 1,852 |
7 | bUnit | 1,064 |
8 | Machine.Specifications | 883 |
9 | vstest | 859 |
10 | Onion-architecture-ASP.NET-Core | 763 |
11 | List-of-Testing-Tools-and-Frameworks-for-.NET | 512 |
12 | DNTFrameworkCore | 313 |
13 | TcUnit | 222 |
14 | Moq.Contrib.HttpClient | 184 |
15 | SystemWrapper | 171 |
16 | entity-framework-core-mock | 131 |
17 | fluentassertions.analyzers | 128 |
18 | SimpleStubs | 66 |
19 | PeakLimsApiSample | 50 |
20 | movie-search-application | 29 |
21 | StoreCleanArchitecture-NET | 26 |
22 | qest | 9 |
23 | GenWrap | 8 |
Sponsored