C# Testing

Open-source C# projects categorized as Testing

Top 23 C# Testing Projects

  • Bogus

    :card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.

  • Project mention: Bogus custom Dataset | dev.to | 2024-01-06

    Bogus NuGet package is fake data generator which can be helpful for populating tables in a database and testing purposes. If a database is not used and Bogus populates list of data each time an application runs, the data is random, never the same. Also, the random data generated by Bogus may not meet a developer’s requirements.

  • 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

  • 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

  • testcontainers-dotnet

    A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.

  • Project mention: Integration tests with AWS S3 buckets using Localstack and Testcontainers | dev.to | 2023-11-07

    Testcontainers

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

  • Papercut

    Papercut SMTP -- The Simple Desktop Email Server

  • NSubstitute

    A friendly substitute for .NET mocking libraries.

  • Project mention: What am I missing about interfaces? | /r/csharp | 2023-11-23

    a. you might do so purely out of argo cult, i.e. because someone told you this was the right thing to do™, and that's a silly exercise. b. you could also be doing this for a good reason: to use the interface with a mocking tool like NSubstitute

  • SaaSHub

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

    SaaSHub logo
  • NUnit

    NUnit Framework

  • Project mention: CI/CD Pipeline Using GitHub Actions: Automate Software Delivery | dev.to | 2023-07-21

    .NET / xUnit / NUnit / MSTest

  • ReportGenerator

    ReportGenerator converts coverage reports generated by coverlet, OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov or lcov into human readable reports in various formats.

  • Project mention: Help With NuGet in Powershell | /r/PowerShell | 2023-06-25

    I am trying to install ReportGenerator through PowerShell. My understanding from installation page is that I will need NuGet in order to do this.

  • Verify

    Verify is a snapshot tool that simplifies the assertion of complex data models and documents.

  • SpecFlow

    #1 .NET BDD Framework. SpecFlow automates your testing & works with your existing code. Find Bugs before they happen. Behavior Driven Development helps developers, testers, and business representatives to get a better understanding of their collaboration

  • FlaUI

    UI automation library for .Net

  • Project mention: Automated testing WPF app | /r/csharp | 2023-12-09
  • Shouldly

    Should testing for .NET—the way assertions should be!

  • Stryker.NET

    Mutation testing for .NET core and .NET framework!

  • Project mention: Stryker.NET alternatives - Testura.Mutation, visualmutator, fettle, and Faultify | libhunt.com/r/stryker-net | 2023-06-09
  • FakeItEasy

    The easy mocking library for .NET

  • mockhttp

    Testing layer for Microsoft's HttpClient library. Create canned responses using a fluent API.

  • Project mention: Mock heavy tests | /r/dotnet | 2023-06-01

    I'd say that without wanting to refactor the code a little bit (maybe moving those HttpClients into a service so that they are easily mocked) your best bet would be to use something like WireMock or MockHttp.

  • System.IO.Abstractions

    Just like System.Web.Abstractions, but for System.IO. Yay for testable IO access!

  • coyote

    Coyote is a library and tool for testing concurrent C# code and deterministically reproducing bugs.

  • Project mention: Does Your Test Suite Account for Weak Transaction Isolation? | news.ycombinator.com | 2024-01-04

    ex: https://github.com/microsoft/coyote/blob/main/Samples/Accoun...

  • WireMock.Net

    WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on the functionality from http://WireMock.org, but extended with more functionality.

  • Project mention: Mock heavy tests | /r/dotnet | 2023-06-01

    I'd say that without wanting to refactor the code a little bit (maybe moving those HttpClients into a service so that they are easily mocked) your best bet would be to use something like WireMock or MockHttp.

  • NetArchTest

    A fluent API for .Net that can enforce architectural rules in unit tests.

  • Project mention: Can I set a policy (using `editorconfig`?) to require certain namespace aliases? | /r/dotnet | 2023-08-18

    Since this happens at the code level (the alias no longer exists at compile time), I probably can't use something like https://github.com/BenMorris/NetArchTest to test for this.

  • pose

    Replace any .NET method (including static and non-virtual) with a delegate

  • Compare-Net-Objects

    What you have been waiting for :+1: Perform a deep compare of any two .NET objects using reflection. Shows the differences between the two objects.

  • Machine.Specifications

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

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

  • 20 Top C# Frameworks and Libraries on GitHub for Building Powerful Applications

    17 projects | dev.to | 23 May 2024
  • Bogus custom Dataset

    2 projects | dev.to | 6 Jan 2024
  • Does Your Test Suite Account for Weak Transaction Isolation?

    3 projects | news.ycombinator.com | 4 Jan 2024
  • C# User-defined explicit and implicit conversion operators

    2 projects | dev.to | 1 Jan 2024
  • Windows form move items up/down in ListView and more

    2 projects | dev.to | 22 Dec 2023
  • API: Go, .NET, Rust

    3 projects | /r/dotnet | 9 Dec 2023
  • What am I missing about interfaces?

    1 project | /r/csharp | 23 Nov 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 1 Jun 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 Testing projects in C#? This list will help you:

Project Stars
1 Bogus 8,404
2 xUnit 4,068
3 Fluent Assertions 3,634
4 testcontainers-dotnet 3,591
5 AutoFixture 3,259
6 Papercut 2,819
7 NSubstitute 2,575
8 NUnit 2,467
9 ReportGenerator 2,476
10 Verify 2,369
11 SpecFlow 2,219
12 FlaUI 2,126
13 Shouldly 1,983
14 Stryker.NET 1,731
15 FakeItEasy 1,646
16 mockhttp 1,552
17 System.IO.Abstractions 1,469
18 coyote 1,429
19 WireMock.Net 1,326
20 NetArchTest 1,284
21 pose 1,068
22 Compare-Net-Objects 1,032
23 Machine.Specifications 883

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com