A list of paid, free or open source C# and .NET testing libraries, plugins and tools for architecture testing, mock testing, fake data testing, behaviour driven testing, unit testing, web automation and natural language testing. Sourced under a creative commons. This list will be updated regularly. Email over the URL, if you wish to be included.
C# and .NET testing libraries, plugins and tools for architecture testing, mock testing, fake data testing, behaviour driven testing, unit testing, web automation and natural language testing
- ArchUnitNET – Simple library for checking the architecture of C# code with a fluent API.
- NetArchTest – A fluent API for .Net Standard that can enforce architectural rules in unit tests.
- AutoFixture – AutoFixture is an open source framework for .NET designed to minimize the ‘Arrange’ phase of your unit tests
- BDTest – A behaviour driven testing and reporting framework!
- BDDfy – BDDfy is the simplest BDD framework EVER!
- Bogus – A simple and sane fake data generator for C#. Based on and ported from the famed faker.js.
- ExpressionToCode – Use plain C# syntax in assertions that include both the expression expression and subexpression values in the failure message.
- FakeItEasy – The easy mocking library for .NET https://fakeiteasy.github.io
- Fluent Assertions – A set of .NET extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style test
- FluentAutomation – Simple Fluent API for UI Automation
- FsCheck – Random Testing for .NET.
- Fuchu – A unit-testing library for F# with tests-as-values which makes DSLs extremely easy to create.
- Machine.Specifications – Machine.Specifications (MSpec) is a context/specification framework that removes language noise and simplifies tests.
- Moq – The most popular and friendly mocking framework for .NET
- Moq.Contrib.HttpClient – A set of extension methods for mocking HttpClient and IHttpClientFactory with Moq.
- NBomber – Very simple load testing framework for Pull and Push scenarios. It’s 100% written in F# and targeting .NET Core and full .NET Framework.
- NBuilder – Rapid generation of test objects
- NCrunch – An automated continuous & concurrent testing tool for Visual Studio. [$]
- NFluent – NFluent is an assertion library which aims to fluent your .NET TDD experience.
- NSubstitute – A friendly substitute for .NET mocking frameworks
- NUnit – A unit-testing framework for all .NET languages
- Rhino Mocks – Dynamic Mocking Framework for .NET
- Testcontainers – A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
- SecTester – SecTester is a new tool that integrates Bright enterprise-grade scan engine directly into your integration or e2e tests. [Proprietary] [Free]
- Shouldly – Shouldly is an assertion framework which focuses on giving great error messages when the assertion fails while being simple and terse.
- Snapshooter – A snapshot testing tool for .NET Core and .NET Framework
- SpecFlow – Binding business requirements to .Net code
- Stryker.NET – Mutation testing for .NET Core projects
- xBehave.net – An xUnit.net extension for describing your tests using natural language.
- xUnit.net – A free, open source, community-focused unit testing tool for the .NET Framework.
- Canopy – Canopy is a free, open source F# web automation and testing framework
- Expecto – A smooth testing framework for F# with tests as values. Unit testing, property based testing, performance testing and stress testing.
- ReportPortal – AI-powered Test Automation Dashboard. Acquire, aggregate and analyze test reports to ascertain release health.
- Compare-Net-Objects – Perform a deep compare of any two .NET objects using reflection. Shows the differences between the two objects.
- Verify – Verification tool to enable simple approval of complex models and documents.
- CsCheck – Random testing library for C#. Including concurrency, causal profiling, regression and performance testing.
Tags: c#, open source, f#, .net, c# tools, c# plugins, c# libraries, .net tools, .net plugins, .net libraries, asp.net tools, asp.net plugins, asp.net libraries, architecture testing, mock testing, fake data testing, behaviour driven testing, unit testing, web automation and natural language testing
Image: Unsplash License.