C# Testing

Open-source C# projects categorized as Testing

Top 23 C# Testing Projects

  • GitHub repo Bogus

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

  • GitHub repo Moq

    Repo for managing Moq 4.x

    Project mention: How to write good unit tests? Avoid these two issues | dev.to | 2020-11-09

    The tests used Moq, a mocking library for .NET. I already wrote about the things I like and dislike about Moq. Let's see the two issues with this test.

  • Uno Platform

    Pixel-Perfect Multi-Platform Applications with C# and XAML. Build single-codebase applications for Windows, Web, Linux, macOS, iOS and Android with open-source Uno Platform. Fluent and Material design included in-the-box. Try now via 3 min tutorial.

  • GitHub repo xUnit

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

  • GitHub repo 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: LPT: There is a library called Bogus, you should know it exists much earlier than I did in my career. | reddit.com/r/csharp | 2021-02-07
  • GitHub repo Fluent Assertions

    Fluent API for asserting the results of unit tests that targets .NET Framework 4.5, 4.7, .NET Standard 1.3, 1.6 and 2.0. Supports the unit test frameworks MSTest, MSTest2, Gallio, NUnit, XUnit, MBunit, MSpec, and NSpec.

    Project mention: Cell CMS - Criando testes de maneira prática | dev.to | 2021-01-31

    fluentassertions / fluentassertions

  • GitHub repo NUnit

    NUnit 3 Framework

  • GitHub repo 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

  • Scout

    Get performance insights in less than 4 minutes. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.

  • GitHub repo NSubstitute

    A friendly substitute for .NET mocking libraries.

    Project mention: Cell CMS - Criando testes de maneira prática | dev.to | 2021-01-31

    nsubstitute / NSubstitute

  • GitHub repo Shouldly

    Should testing for .NET - the way Asserting *Should* be!

  • GitHub repo 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: How to include code coverage in Azure DevOps pipeline? | dev.to | 2021-01-16

    danielpalme / ReportGenerator

  • GitHub repo FakeItEasy

    The easy mocking library for .NET

  • GitHub repo FlaUI

    UI automation library for .Net

    Project mention: Application Performance Testing - automated | reddit.com/r/sysadmin | 2021-02-20

    Maybe try this: https://github.com/FlaUI/FlaUI

  • GitHub repo Machine.Specifications

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

  • GitHub repo GenFu

    GenFu is a library you can use to generate realistic test data. It is composed of several property fillers that can populate commonly named properties through reflection using an internal database of values or randomly created data. You can override any of the fillers, give GenFu hints on how to fill them.

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

  • GitHub repo Fixie

    Ergonomic Testing for .NET

  • GitHub repo Stryker.NET

    Mutation testing for .NET core and .NET framework!

  • GitHub repo MSTest

    MSTest V2 framework and adapter

  • GitHub repo xBehave.net

    ✖ An xUnit.net extension for describing each step in a test with natural language.

  • GitHub repo BDDfy

    BDDfy is the simplest BDD framework EVER!

  • GitHub repo Atata

    C#/.NET test automation framework for web

  • GitHub repo NFluent

    Smooth your .NET TDD experience with NFluent! NFluent is an ergonomic assertion library which aims to fluent your .NET TDD experience (based on simple Check.That() assertion statements). NFluent aims your tests to be fluent to write (with a super-duper-happy 'dot' auto-completion experience), fluent to read (i.e. as close as possible to plain English expression), but also fluent to troubleshoot, in a less-error-prone way comparing to the classical .NET test frameworks. NFluent is also directly i

  • GitHub repo NSpec

    A battle hardened testing framework for C# that's heavily inspired by Mocha and RSpec.

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 2021-02-20.


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

Project Stars
1 Bogus 4,121
2 Moq 3,883
3 xUnit 2,808
4 AutoFixture 2,189
5 Fluent Assertions 2,072
6 NUnit 1,997
7 SpecFlow 1,676
8 NSubstitute 1,499
9 Shouldly 1,496
10 ReportGenerator 1,234
11 FakeItEasy 1,075
12 FlaUI 867
13 Machine.Specifications 803
14 GenFu 640
15 Compare-Net-Objects 577
16 Fixie 554
17 Stryker.NET 481
18 MSTest 385
19 xBehave.net 363
20 BDDfy 358
21 Atata 353
22 NFluent 276
23 NSpec 241