Adds relational support to the Microsoft EntityFrameworkCore in-memory database provider by mocking relational operations. EntityFrameworkCore.Testing v1.x = EntityFrameworkCore 2 (2.1.0+) EntityFrameworkCore.Testing v2.x = EntityFrameworkCore 3 EntityFrameworkCore.Testing v3.x = EntityFrameworkCore 5 EntityFrameworkCore.Testing v4.x = EntityFrameworkCore 6 EntityFrameworkCore.Testing v5.x = EntityFrameworkCore 7 EntityFrameworkCore.Testing v8.x = EntityFrameworkCore 8 EntityFrameworkCore.Testing v9.x = EntityFrameworkCore 9 EntityFrameworkCore.Testing v10.x = EntityFrameworkCore 10 EntityFrameworkCore.Testing v11.x = EntityFrameworkCore 11
A C# library complementing the Bogus generator by adding auto creation and population capabilities. This package includes mocking options using Moq.
Unit testing framework for Sitecore.
A unit test toolkit for Microsoft Orleans that does not require a real silo. Instead, tests are run with a mock grain activation context.
Automock implementation for FakeItEasy using Ninject to create the objects under test.
Supports checking that Moq setups are executed in sequence.
Replace any .NET method (including static and non-virtual) with a delegate
A mocking library that creates Microsoft.Extensions.Caching.Memory IMemoryCache system mocks using Moq.
Set of interfaces of .NET system APIs that allows interaction mocking.
FakeXrmEasy is the open source test automation framework for .net core and the Power Platform. This is the core package containing a configurable middleware, crud operators, and query translation between FetchXml, QueryExpression, CRM LINQ, and QueryByAttribute.
Implementation of SystemWrapper.Interfaces using standard .NET Framework objects.
A C# library complementing the Bogus generator by adding auto creation and population capabilities. This package includes mocking options using NSubtitute.
This extension turns AutoFixture into an Auto-Mocking Container. The mock instances are created by Rhino Mocks. To use it, add the AutoRhinoMockCustomization to your Fixture instance. Read more at http://blog.ploeh.dk/2010/11/13/RhinoMocksbasedAutomockingWithAutoFixture.aspx
Machine.Fakes attempts to simplify the usage of such frameworks on top of Machine.Specifications by helping to reduce a lot of the typical fake framwork related clutter code in specifications. If you choose so, Machine.Fakes even helps you to stay mostly independent of a concrete fake framework by providing a little wrapper API and a provider model for fake frameworks.
The TestHelper library allows simpler unit testing on Asp.net MVC controllers than can be accomplished through standard mocking and subclassing. It is designed to reduce the amount of work required to test controllers, and therefore should be used by your test projects but not in your web server project.
The simple statsd client for .Net is a robust, easy-to-use way of feeding metrics into a statsd-compatible server. You can use it to log counts, timings and gauges. Features include: * Log counts, timings, gauges, sets and raw metrics * Has an additional API that uses dynamics to create and submit stats * Fault-tolerant client that can be configured to fail silently (with a warning) if misconfigured * IStatsdClient interface for easy mocking in unit tests * Allows for customisation of every output stat to do things like screen metrics before sending * Supports a user-defined prefix to prepend to every metric * Outputs to UDP or TCP .Net 4.5 Users: * Use the StatsdExtensions to define metrics without having to manipulate strings * The dynamic stats builder interface provides a cleaner alternative to creating and logging metrics Licence: MIT
Interface abstractions used by various Microdot components, seperated from their implementations to allow easy unit testing with mocks (see Gigya.Microdot.Fakes). Part of the Microdot Framework.
Adds mocking capabilities to the LightInject service container.
A BDD style testing framework, heavily relying on (auto mocking) containers.
Provides unit testing helpers, in memory persistence, mocking support and more
Unit testing framework for Sitecore.
Contains Moq argument matchers using FluentAssertions
Extension methods for setupping mock values of Microsoft.Extensions.Configuration.IConfiguration.
A C# library complementing the Bogus generator by adding auto creation and population capabilities. This package includes mocking options using FakeItEasy.
TestStack.Dossier provides you with the code infrastructure to easily and quickly generate test fixture data for your automated tests in a terse, readable and maintainable way using the Test Data Builder, anonymous value and equivalence class patterns. Formerly called NTestDataBuilder.
Machine.Specifications.AutoMocking attempts to reduce noise in Machine.Specifications (MSpec) tests when creating mock objects, dependencies and the subject under test.
Mock implementation of IWebDriver which does not open a browser, for high performance testing of Selenium based frameworks, without a dependency on browsers and web drivers.
Accelerates preparation of mocked structures for unit tests under xUnit2 by configuring AutoFixture data generation to use Moq. Gracefully handles recursive structures by omitting recursions.
SystemWrapper is a library that wraps .NET classes for system resources like System.IO.FileInfo, System.Reflection.Assembly, and many other classes so you can easily mock them.
A library to help with unit/accpetance tests of code that relies on an external HTTP service, by allowing you to easily mock one.
An XActLib assembly: an assembly of mock implementations of the services defined in XAct.Workflows. For testing purposes only.
Standalone test spies, stubs and mocks for JavaScript. No dependencies, works with any unit testing framework. Package version number is aligned with the SinonJS version numbering. Please send me a pull request to https://github.com/cvrajeesh/SinonJS-NuGet-Package if a new version of SinonJS is available
This .NET library simplifies data mocking for UnitTests, to avoid a connection to a relational database. DbMocker use the standard Microsoft .NET DbConnection object. So, you can mock any toolkit, including EntityFramework, Dapper or ADO.NET; And for all database servers (SQL Server, Oracle, SQLite). ``` var conn = new MockDbConnection(); conn.Mocks .When(cmd => cmd.CommandText.Contains("SELECT COUNT(*) FROM EMP")) .ReturnsScalar(14); ```
NUnit.Mocks was originally developed for internal use in NUnit's own tests, although we no longer use it for that purpose. In addition, it has been useful as a teaching tool, allowing users to gain familiarity with mocking techniques before moving on to more serious frameworks. For production use, we recommend you install a full-featured mock object framework. The NUnit project now uses NSubstitute and NUnit.Mocks is no longer being developed.
*TestBase* gives you a flying start with - fluent assertions that are easy to extend - sharp error messages - tools to help you test with “heavyweight” dependencies on - AspNetCore.Mvc, AspNet.Mvc or WebApi Contexts - HttpClient - Ado.Net - Streams & Logging - Mix & match with your favourite test runners & assertions. ``` UnitUnderTest.Method() .ShouldNotBeNull() .ShouldEqualByValueExceptFor(new {Id=1, Descr=expected}, ignoreList ) .Payload .ShouldMatchIgnoringCase("I expected this") .Should(someOtherPredicate); .Items .ShouldAll(predicate) .ShouldContain(item) .ShouldNotContain(predicate) .Where(predicate) .SingleOrAssertFail() item .ShouldEqualByValue() .ShouldEqualByValueExceptFor(...) .ShouldEqualByValueOnMembers() string .ShouldMatch(pattern) .ShouldNotMatch() .ShouldBeEmpty() .ShouldNotBeEmpty() .ShouldNotBeNullOrEmptyOrWhiteSpace() .ShouldEqualIgnoringCase() .ShouldContain() .ShouldBeContainedIn() .ShouldStartWith() .ShouldEndWith() ... numeric .ShouldBeBetween() .ShouldEqualWithTolerance()....GreaterThan....LessThan...GreaterOrEqualTo ... ienumerable .ShouldAll() .ShouldContain() .ShouldNotContain() .ShouldBeEmpty() .ShouldNotBeEmpty() ... stream .ShouldHaveSameStreamContentAs() .ShouldContain() value .ShouldBe() .ShouldNotBe() .ShouldBeOfType() .ShouldBeAssignableTo() ... ``` Testable Logging is in packages Extensions.Logging.ListOfString and Serilog.Sinks.ListOfString ``` // Extensions.Logging.ListOfString var log = new List<String>(); ILogger mslogger= new LoggerFactory().AddStringListLogger(log).CreateLogger("Test2"); // Serilog.Sinks.ListOfString Serilog.Logger slogger= new LoggerConfiguration().WriteTo.StringList(log).CreateLogger(); ```
Mocks, in-memory (SQLite) SQL connections, service collection and configuration helpers shared by Serenity based test projects.
An XActLib assembly: mock services for testing Client functionality.