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: 20 Top C# Frameworks and Libraries on GitHub for Building Powerful Applications | dev.to | 2024-05-23

    20. XUnit

  • Cake

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

  • 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
  • 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: 20 Top C# Frameworks and Libraries on GitHub for Building Powerful Applications | dev.to | 2024-05-23

    15. FluentAssertions

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

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub 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

  • Optimizing C# code analysis for quicker .NET compilation

    4 projects | dev.to | 14 Nov 2023
  • Integration testing in Umbraco 10+: Validating document types

    1 project | dev.to | 3 Oct 2023
  • Comprehensive Unit Testing: A Line-by-Line Approach

    2 projects | dev.to | 12 Sep 2023
  • FluentValidation in .NET

    1 project | dev.to | 30 Jun 2023
  • Running a XUnit test with C#?

    3 projects | /r/csharp | 28 May 2023
  • Integration tests for AWS serverless solution

    4 projects | dev.to | 15 May 2023
  • NUnit vs XUnit for .net6+ microservices

    7 projects | /r/dotnet | 1 Mar 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 30 May 2024
    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 →

Index

What are some of the best open-source unit-testing projects in C#? This list will help you:

Project Stars
1 xUnit 4,068
2 Cake 3,831
3 Fluent Assertions 3,626
4 AutoFixture 3,259
5 abot 2,209
6 Rubberduck 1,862
7 bUnit 1,079
8 Machine.Specifications 883
9 vstest 863
10 Onion-architecture-ASP.NET-Core 763
11 List-of-Testing-Tools-and-Frameworks-for-.NET 514
12 DNTFrameworkCore 314
13 TcUnit 232
14 Moq.Contrib.HttpClient 185
15 SystemWrapper 171
16 entity-framework-core-mock 132
17 fluentassertions.analyzers 129
18 SimpleStubs 66
19 PeakLimsApiSample 50
20 movie-search-application 32
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