C# unit-testing

Open-source C# projects categorized as unit-testing

Top 23 C# unit-testing Projects

  • xUnit

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

  • Project mention: Optimizing C# code analysis for quicker .NET compilation | dev.to | 2023-11-14

    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.

  • Cake

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

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

    WorkOS logo
  • 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.

  • Project mention: API: Go, .NET, Rust | /r/dotnet | 2023-12-09

    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.

  • abot

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

  • Rubberduck

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

  • Project mention: Rubberduck – A free and open-source VBIDE add-in | news.ycombinator.com | 2024-01-25
  • 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.

    InfluxDB logo
  • 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

  • TcUnit

    An unit testing framework for Beckhoff's TwinCAT 3

  • Moq.Contrib.HttpClient

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

  • SystemWrapper

    .NET library for easier testing of system APIs.

  • entity-framework-core-mock

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

  • Project mention: Repository and Unit Of Work | /r/dotnet | 2023-06-22

    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.

  • fluentassertions.analyzers

    Analyzers based on the FluentAssertions best practices docs

  • Project mention: Optimizing C# code analysis for quicker .NET compilation | dev.to | 2023-11-14

    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.

  • 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)

  • PeakLimsApiSample

    🧬 A complex DDD based web API to model the accessioning workflow within a LIMS.

  • 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

  • qest

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

  • GenWrap

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

  • 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 related posts

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
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com