Top 20 NuGet mock Packages
Serilog.Sinks.ListOfString logs to a list of string so you can test your logging : ``` var log= new List<String>(); var testLogger= new LoggerConfiguration().WriteTo.StringList(log).CreateLogger(); ...tests... log.ShouldContain( x=>x.Matches("kilroy was here") ); ``` This is for Serilog. For Mic...
This library creates a way to abstract static calls from common .Net objects so that the containing code can be more easily unit tested
UniMock is a auto-mocking tool that automatically mocks the entire universe and lets you concentrate on writing clean, fast, efficient tests with the minimum of overhead. It allows you to use your choice of mocking/stubbing tool and IoC container.
When writing unit tests for any code that uses dependency injection, and when using a mocking framework, we need to declare and inject any dependency we have. This is repetitive and boring code to write, especially on classes with many dependencies. AutoMock solves this by creating mocks/stubs on th...
A library extending Magneto with implementations of ICacheStore backed by implementations from Microsoft.Extensions.Caching.
A data access library for .NET combining the mediator pattern and the query object pattern, with caching, async and easy mocking of queries and commands.
Lightweight Http Mocking Server for .Net, inspired by WireMock from the Java landscape. This is a forked version that contains a very basic remote WireMock Admin API and an Interface to make your tests capable of running against a local or a remote WireMock server transparently.
Test/mock (3rd party) code reliant on HttpClient, WebClient, HttpWebRequest and WebRequest.Create()