Xunit.DependencyInjection 7.1.0

.NET Standard 2.0 .NET Framework 4.6.1
There is a newer version of this package available.
See the version list below for details.
dotnet add package Xunit.DependencyInjection --version 7.1.0
NuGet\Install-Package Xunit.DependencyInjection -Version 7.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xunit.DependencyInjection" Version="7.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xunit.DependencyInjection --version 7.1.0
#r "nuget: Xunit.DependencyInjection, 7.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xunit.DependencyInjection as a Cake Addin
#addin nuget:?package=Xunit.DependencyInjection&version=7.1.0

// Install Xunit.DependencyInjection as a Cake Tool
#tool nuget:?package=Xunit.DependencyInjection&version=7.1.0

Use Microsoft.Extensions.DependencyInjection to inject xunit testclass. If you want write Microsoft.Extensions.Logging to ITestOutputHelper, please install Xunit.DependencyInjection.Logging
Release notes:
7.1: Fix can't run test case when host.StartAsync() throw exception.
7.0: Add fixture injection and refactor DependencyInjectionTestFramework, you don't have to declare the [assembly: TestFrameworkAttribute] on normal case.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (9)

Showing the top 5 NuGet packages that depend on Xunit.DependencyInjection:

Package Downloads
Xunit.DependencyInjection.Logging

Support Microsoft.Extensions.Logging to ITestOutputHelper. public void Configure(IServiceProvider provider) { XunitTestOutputLoggerProvider.Register(provider); }

Xunit.DependencyInjection.Demystifier

Use Ben.Demystifier Formate Exception. public void ConfigureServices(IServiceCollection services) { services.UseDemystifyExceptionFilter(); }

Xunit.DependencyInjection.SkippableFact

Support Xunit.SkippableFact. public void ConfigureServices(IServiceCollection services) { services.AddSkippableFactSupport(); }

Harpy.Test.Domain

Basis for the domain test layer of the Harpy Framework

EncompassApi.xUnit

A xUnit library

GitHub repositories (15)

Showing the top 5 popular GitHub repositories that depend on Xunit.DependencyInjection:

Repository Stars
dotnetcore/Util
Util是一个.net core平台下的应用框架,旨在提升小型团队的开发输出能力,由常用公共操作类(工具类)、分层架构基类、Ui组件,第三方组件封装,第三方业务接口封装,配套代码生成模板,权限等组成。
chromelyapps/Chromely
Build Cross Platform HTML Desktop Apps on .NET using native GUI, HTML5, JavaScript, CSS, Owin, AspNetCore (MVC, RazorPages, Blazor)
fullstackhero/dotnet-webapi-boilerplate
Clean Architecture Template for .NET 6.0 WebApi built with Multitenancy Support.
jamie-mh/AuthenticatorPro
📱 Two-Factor Authentication (2FA) client for Android + Wear OS
bing-framework/Bing.NetCore
Bing是基于 .net core 3.1 的框架,旨在提升团队的开发输出能力,由常用公共操作类(工具类、帮助类)、分层架构基类,第三方组件封装,第三方业务接口封装等组成。
Version Downloads Last updated
8.7.1 4,664 3/11/2023
8.7.0 77,938 1/4/2023
8.6.1 224,004 10/22/2022
8.6.0 31,997 10/11/2022
8.5.0 546,415 4/17/2022
8.4.1 96,983 3/24/2022
8.4.0 10,941 3/17/2022
8.3.0 372,926 11/25/2021
8.2.0 156,095 11/12/2021
8.1.0 38,966 10/22/2021
8.0.0 23,621 10/21/2021
7.7.0 130,267 10/14/2021
7.6.0 139,730 9/2/2021
7.5.1 60,295 8/31/2021
7.4.0 58,208 8/14/2021
7.3.0 222,953 7/9/2021
7.2.0 270,955 4/19/2021
7.1.0 331,064 11/7/2020

Use Microsoft.Extensions.DependencyInjection to inject xunit testclass. If you want write Microsoft.Extensions.Logging to ITestOutputHelper, please install Xunit.DependencyInjection.Logging
Release notes:
7.1: Fix can't run test case when host.StartAsync() throw exception.
7.0: Add fixture injection and refactor DependencyInjectionTestFramework, you don't have to declare the [assembly: TestFrameworkAttribute] on normal case.