fm.Extensions.Testing.DependencyInjection.MSTest 4.0.0-preview.1

Provides a MSTest base class for tests based on Microsoft.Extensions.DependencyInjection. Use common Startup.cs patterns like ConfigureServices(...) and Configure(...) to setup your tests.
This extends ServiceTestsBase by adding the TestContext properties to configuration and enabling TestContext logging.

Commonly used types:
ServiceTests

Examples see https://www.nuget.org/packages/fm.Extensions.Testing.DependencyInjection

This is a prerelease version of fm.Extensions.Testing.DependencyInjection.MSTest.
There is a newer version of this package available.
See the version list below for details.
Install-Package fm.Extensions.Testing.DependencyInjection.MSTest -Version 4.0.0-preview.1
dotnet add package fm.Extensions.Testing.DependencyInjection.MSTest --version 4.0.0-preview.1
<PackageReference Include="fm.Extensions.Testing.DependencyInjection.MSTest" Version="4.0.0-preview.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add fm.Extensions.Testing.DependencyInjection.MSTest --version 4.0.0-preview.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: fm.Extensions.Testing.DependencyInjection.MSTest, 4.0.0-preview.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install fm.Extensions.Testing.DependencyInjection.MSTest as a Cake Addin
#addin nuget:?package=fm.Extensions.Testing.DependencyInjection.MSTest&version=4.0.0-preview.1&prerelease

// Install fm.Extensions.Testing.DependencyInjection.MSTest as a Cake Tool
#tool nuget:?package=fm.Extensions.Testing.DependencyInjection.MSTest&version=4.0.0-preview.1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

* BREAKING CHANGE: Incorporate breaking change in https://github.com/Microsoft/testfx/releases/tag/v2.0.0-beta2
* BREAKING CHANGE: Rename TestInitialize/TestCleanup (ServiceTests) to ServiceTestInitialize/ServiceTestCleanup

NuGet packages (1)

Showing the top 1 NuGet packages that depend on fm.Extensions.Testing.DependencyInjection.MSTest:

Package Downloads
fm.Extensions.Logging.Testing.MSTest
Logs and reports log messages that have not been handled during UnitTests.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
6.0.0 49 4/2/2021
6.0.0-preview.3 19 4/2/2021
6.0.0-preview.2 19 4/2/2021
6.0.0-preview.1 53 4/1/2021
5.0.0 369 11/15/2020
4.2.0 432 1/4/2020
4.1.0 262 10/23/2019
4.0.0 403 9/4/2019
4.0.0-preview.2 184 2/26/2019
4.0.0-preview.1 169 2/26/2019
3.0.0 5,738 10/12/2017
2.0.0 458 10/9/2017
1.0.0 629 2/27/2017
Show less