Top 23 C# Testing Projects
:card_index: A simple and sane fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.Project mention: Some useful Libraries for .NET projects | dev.to | 2021-10-02
Bogus Github Nuget: Install-Package Bogus -Version 33.1.1
Repo for managing Moq 4.xProject mention: We need to have a talk about making life easier for newcomers to .NET | news.ycombinator.com | 2021-11-15
> edit: one more qualm, the Mockito equivalent for C#, NSubstitute, cannot mock a concrete class, only an interface.
I've never heard of NSubstitute (that doesn't mean it's bad), but most places I've worked at typically use Moq (https://github.com/moq/moq4) which does support interfaces and classes.
Your Free Guide to Become Microsoft Azure Certified. Get this free guide to learn about different Azure certifications, what fits your current role, preparation resources, and freelancing platforms for Azure professionals to earn income
xUnit.net is a free, open source, community-focused unit testing tool for the .NET Framework.Project mention: Clean Architecture Solution Template | dev.to | 2021-11-25
The projects are all .NET 6 applications with nullable references types and implicit usings enabled. The unit testing projects use Xunit out of the box. There are also support files such as .gitignore, .editorconfig, etc.
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: Practical complex data for unit testing | dev.to | 2021-09-09
One neat library for creating and generating test data is AutoFixture. The creators describe it as follows:
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, .NET Core 2.1 and 3.0, as well as .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.Project mention: BREAKING!! NPM package ‘ua-parser-js’ with more than 7M weekly download is compromised | reddit.com/r/programming | 2021-10-22
https://www.nuget.org/packages/Newtonsoft.Json/ https://www.nuget.org/packages/AutoMapper/ https://www.nuget.org/packages/Dapper/ https://www.nuget.org/packages/FluentValidation/ https://www.nuget.org/packages/FluentAssertions/ https://www.nuget.org/packages/NUnit/ https://www.nuget.org/packages/xunit/ https://www.nuget.org/packages/YamlDotNet/ https://www.nuget.org/packages/Moq/ That is simply not true. Mature c# projects purposely maintain no downstream dependencies and is they do, it's to a major reputable lib. See for yourself - these are staple third party packages commonly used. Anything dependency starting with System or NETStandard is Microsoft maintained.
NUnit 3 FrameworkProject mention: What is unit testing? | dev.to | 2021-11-08
#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
Run Linux Software Faster and Safer than Linux with Unikernels.
A friendly substitute for .NET mocking libraries.Project mention: Cell CMS - Criando testes de maneira prática | dev.to | 2021-01-31
nsubstitute / NSubstitute
Should testing for .NET - the way Asserting *Should* be!Project mention: Adelaide United's Josh Cavallo has openly come out as gay. | reddit.com/r/soccer | 2021-10-27
Robbie Rogers came out in the MLS like a decade ago
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: Teste de unidade com xUnit | dev.to | 2021-04-21
Referências: https://dotnet.microsoft.com/download https://docs.microsoft.com/en-us/dotnet/core/testing/unit-testing-with-dotnet-test https://xunit.net/docs/getting-started/netcore/cmdline https://github.com/coverlet-coverage/coverlet https://github.com/danielpalme/ReportGenerator
The easy mocking library for .NET
UI automation library for .NetProject mention: Easy way for screen automation in WPF (C#) | reddit.com/r/dotnet | 2021-10-27
What comes to mind is something like this one: https://github.com/FlaUI/FlaUI I don't think it can do the "search image on screen" part. A smooth mouse movement is only a series of mouse teleports, so that should be coded relatively easy. If you really don't know where the image is on screen and it also does not have a id to search for then it will be a little harder I guess. Like making a screenshot and putting it into some image processing library? Probably there are easier solutions out there
Replace any .NET method (including static and non-virtual) with a delegateProject mention: Best practices can slow your application down | news.ycombinator.com | 2021-03-08
It sounds like the team is interested in adding more automated tests, but are blocked by static singletons, which have high performance but also high coupling, resulting in poor testability.
I'm sure they've heard of test libraries like MS Fakes and [Pose](https://github.com/tonerdo/pose); I wonder if these libraries would let them maintain high performance, and only introduce the required layer of indirection during testing?
Machine.Specifications is a Context/Specification framework for .NET that removes language noise and simplifies tests.Project mention: Show HN: A C# library to help you enforce a Given-When-Then structured Unit test | news.ycombinator.com | 2021-08-29
Looks like a similar concept to https://github.com/machine/machine.specifications which I used many years ago to try and achieve BDD style unit testing.
One point to note from your introduction was the following statement:
Verify is a snapshot tool that simplifies the assertion of complex data models and documents.
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.Project mention: How do I capture multiple asserts? | reddit.com/r/dotnet | 2021-07-09
Instead of doing multiple assertions, why not check for structural (or full) equality over the entire DTO? Compare-Net-Objects can help you here.
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.
Testing layer for Microsoft's HttpClient library. Create canned responses using a fluent API. (by richardszalay)Project mention: RestClient.Net 5.0.x Beta Released | reddit.com/r/csharp | 2021-04-24
WireMock.Net is a flexible library 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: How do I mock the response from my authentication server for client integration tests? | reddit.com/r/softwaredevelopment | 2021-09-15
You could try out WireMock.Net: https://github.com/WireMock-Net/WireMock.Net/wiki/Using-WireMock-in-UnitTests
Ergonomic Testing for .NET
MSTest V2 framework and adapterProject mention: Visual Studio Community and Unit Testing | reddit.com/r/csharp | 2021-11-23
Which exact version of the MSTest packages are you using? Currently it should be MSTest.TestFramework 2.2.7.
C#/.NET test automation framework for webProject mention: Load testing with Atata and Selenoid (Part 1) | dev.to | 2021-04-15
Atata is a great open source project created by @yevgeniyshunevych
C# Testing related posts
Clean Architecture Solution Template
2 projects | dev.to | 25 Nov 2021
Visual Studio Community and Unit Testing
1 project | reddit.com/r/csharp | 23 Nov 2021
We need to have a talk about making life easier for newcomers to .NET
3 projects | news.ycombinator.com | 15 Nov 2021
Writing tests for CLI tool
3 projects | dev.to | 14 Nov 2021
Announcing .NET 6 — The Fastest .NET Yet
9 projects | reddit.com/r/programming | 8 Nov 2021
Adelaide United's Josh Cavallo has openly come out as gay.
1 project | reddit.com/r/soccer | 27 Oct 2021
Os 3 principais frameworks de testes que todo desenvolvedor .NET deveria conhecer
3 projects | dev.to | 18 Oct 2021
What are some of the best open-source Testing projects in C#? This list will help you:
Are you hiring? Post a new remote job listing for free.