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: Running a XUnit test with C#? | reddit.com/r/csharp | 2023-05-28

    The git repo has other runners. AssemblyRunner appears to be the best fit for an already compiled tests project, but there is a runner that can be wrapped into an MSBuild task for example.

  • Cake

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

    Project mention: Unpopular opinion: CI/CD engines are an awful idea | reddit.com/r/devops | 2023-02-04

    This is why 90-99% of our builds are done with Cake. It isolates all of it and you can run the build locally if you want.

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • 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: Integration tests without API dependencies with ASP.NET Core and WireMock.Net | dev.to | 2022-12-20
  • 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: In a world that runs on Excel, why should I as an engineer learn python? | reddit.com/r/AskEngineers | 2023-05-11
  • 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.

    Project mention: Integration Testing on a Blazor Front End. What's Up? | reddit.com/r/Blazor | 2022-06-13

    As suggested by /u/whyvra +1 for bUnit.

  • Machine.Specifications

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

  • ONLYOFFICE

    ONLYOFFICE Docs — document collaboration in your environment. Powerful document editing and collaboration in your app or environment. Ultimate security, API and 30+ ready connectors, SaaS or on-premises

  • vstest

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

    Project mention: Pressing CTRL+C while reading user input (Console.ReadLine) has a weird issue. | reddit.com/r/csharp | 2022-06-22

    Another commenter in your first post linked you to a bug report. The original bug was a sporadic one with dotnet test. But commenters added more reliable cases, and cases for other dotnet commands.

  • Onion-architecture-ASP.NET-Core

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

    Project mention: Are dotnet contracting jobs common? | reddit.com/r/dotnet | 2023-04-23
  • 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.

  • TcUnit

    An unit testing framework for Beckhoff's TwinCAT 3

    Project mention: Why aren’t there a lot of remote controls/automation positions like there is in IT and web development? I think there should be more remote positions in this field due to the fact that we are practically on the computer all day. | reddit.com/r/PLC | 2022-12-08

    Look into tcunit; it's for Beckhoff not AB but has the general principles you'd want to have in a PLC unit test framework: https://github.com/tcunit/TcUnit.

  • SystemWrapper

    .NET library for easier testing of system APIs.

  • 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

  • GenWrap

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

    Project mention: Source-generated library for testing with JSON | reddit.com/r/csharp | 2023-02-12
  • qest

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

    Project mention: do you support putting business logic in SQL server while building applications using .net6 and dapper and er core | reddit.com/r/dotnet | 2022-12-08

    Actually, you can version control the schema! Just store your sql script for entity creation in git, and deploy with dacpacs and sqlpackage. As for the tests, I'll do a little bit of self promotion here: https://github.com/Geims83/qest (feedback is welcome)

  • Testing101

    Unit Testing Workshop for Beginners

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

  • Mohamad-Lawand

  • azure.functions.tables

    Azure Function with new Table Storage binding and connection by identity

    Project mention: Unit Test Azure Function with Table Extension in C# | dev.to | 2022-06-13

    Please find the complete code at https://github.com/MarkusMeyer13/azure.functions.tables

  • CodiumAI

    TestGPT | Generating meaningful tests for busy devs. Get non-trivial tests (and trivial, too!) suggested right inside your IDE, so you can code smart, create more value, and stay confident when you push.

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). The latest post mention was on 2023-05-28.

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 3,700
2 Cake 3,581
3 Fluent Assertions 3,250
4 abot 2,072
5 Rubberduck 1,754
6 bUnit 889
7 Machine.Specifications 864
8 vstest 774
9 Onion-architecture-ASP.NET-Core 690
10 List-of-Testing-Tools-and-Frameworks-for-.NET 448
11 DNTFrameworkCore 285
12 Moq.Contrib.HttpClient 176
13 TcUnit 164
14 SystemWrapper 164
15 SimpleStubs 66
16 movie-search-application 25
17 StoreCleanArchitecture-NET 21
18 GenWrap 9
19 qest 7
20 Testing101 6
21 Mecha 1
22 Mohamad-Lawand 1
23 azure.functions.tables 1
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
www.sonarqube.org