C# Mocks

Open-source C# projects categorized as Mocks

Top 4 C# Mock Projects

  • NSubstitute

    A friendly substitute for .NET mocking libraries.

    Project mention: Coincidence? I think not | reddit.com/r/ProgrammerHumor | 2022-11-17

    it will change the URL from https://github.com/nsubstitute/NSubstitute to https://github.dev/nsubstitute/NSubstitute (or you can just nav there yourself).

  • System.IO.Abstractions

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

    Project mention: How to handle cross platform paths WHILE running on the opposite platform? | reddit.com/r/csharp | 2022-02-19

    May be worth checking system.io.abstractions https://github.com/TestableIO/System.IO.Abstractions

  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

  • Mockaco

    🐵 HTTP mock server, useful to stub services and simulate dynamic API responses, leveraging ASP.NET Core features, built-in fake data generation and pure C# scripting

    Project mention: Is there a better way to allow testing while using an outside API | reddit.com/r/csharp | 2022-01-04

    You can use https://github.com/natenho/Mockaco

  • CreateAndFake

    A C# class library that handles mocking, test data generation, and validation.

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 2022-11-17.

C# Mocks related posts

Index

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

Project Stars
1 NSubstitute 1,857
2 System.IO.Abstractions 1,211
3 Mockaco 249
4 CreateAndFake 11
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