Xunit.DependencyInjection
4.4.0
See the version list below for details.
dotnet add package Xunit.DependencyInjection --version 4.4.0
NuGet\Install-Package Xunit.DependencyInjection -Version 4.4.0
<PackageReference Include="Xunit.DependencyInjection" Version="4.4.0" />
paket add Xunit.DependencyInjection --version 4.4.0
#r "nuget: Xunit.DependencyInjection, 4.4.0"
// Install Xunit.DependencyInjection as a Cake Addin
#addin nuget:?package=Xunit.DependencyInjection&version=4.4.0
// Install Xunit.DependencyInjection as a Cake Tool
#tool nuget:?package=Xunit.DependencyInjection&version=4.4.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:
1.1.0: DependencyInjectionTestFramework class add Configure(IServiceProvider provider) method
1.2.0: DependencyInjectionTestFramework class add Configuration(IConfigurationBuilder builder) method
2.0.0: Change ConfigureServices retrun value from void to IServiceProvider; Decrease dependency package version.
3.0.0: Move ServiceScope from TestClass to TestCase.
3.1.0: Add ITestOutputHelperAccessor to access ITestOutputHelper.
4.0.0: Remove Microsoft.Extensions.Configuration, reduce the amount of package reference; Support Microsoft.Extensions.Logging to ITestOutputHelper.
4.1.0: Catch GetService Exception.
4.2.0: DependencyInjectionTestFramework add ConfigureServices overload.
4.3.0: Add IAsyncExceptionFilter, support Ben.Demystifier.
4.4.0: Add MemberDataAttribute support
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.3 is compatible. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 was computed. netstandard2.1 was computed. |
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.5
- Microsoft.Extensions.DependencyInjection (>= 1.0.0)
- xunit.extensibility.execution (>= 2.1.0 && < 3.0.0)
-
.NETFramework 4.6
- Microsoft.Extensions.DependencyInjection (>= 1.0.0)
- xunit.extensibility.execution (>= 2.1.0 && < 3.0.0)
-
.NETStandard 1.3
- Microsoft.Extensions.DependencyInjection (>= 1.0.0)
- NETStandard.Library (>= 1.6.1)
- xunit.extensibility.execution (>= 2.2.0 && < 3.0.0)
NuGet packages (13)
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.SkippableFact
Support Xunit.SkippableFact. public void ConfigureServices(IServiceCollection services) { services.AddSkippableFactSupport(); } |
|
Xunit.DependencyInjection.Demystifier
Use Ben.Demystifier Formate Exception. public void ConfigureServices(IServiceCollection services) { services.UseDemystifyExceptionFilter(); } |
|
IGeekFan.FreeKit.Email
Package Description |
|
Harpy.Test.Domain
Basis for the domain test layer of the Harpy Framework |
GitHub repositories (16)
Showing the top 5 popular GitHub repositories that depend on Xunit.DependencyInjection:
Repository | Stars |
---|---|
dotnetcore/Util
Util是一个.Net平台下的应用框架,旨在提升中小团队的开发能力,由工具类、分层架构基类、Ui组件,配套代码生成模板,权限等组成。
|
|
fullstackhero/dotnet-webapi-starter-kit
production grade .net 8 webapi starter kit with multitenancy support and clean code. 🔥
|
|
chromelyapps/Chromely
Build Cross Platform HTML Desktop Apps on .NET using native GUI, HTML5, JavaScript, CSS, Owin, AspNetCore (MVC, RazorPages, Blazor)
|
|
microsoft/kernel-memory
Index and query any data using LLM and natural language, tracking sources and showing citations.
|
|
dotnetcore/sharding-core
high performance lightweight solution for efcore sharding table and sharding database support read-write-separation .一款ef-core下高性能、轻量级针对分表分库读写分离的解决方案,具有零依赖、零学习成本、零业务代码入侵
|
Version | Downloads | Last updated |
---|---|---|
9.1.0 | 14,740 | 4/3/2024 |
9.0.1 | 19,310 | 3/18/2024 |
8.9.1 | 266,229 | 12/10/2023 |
8.9.0 | 262,023 | 9/19/2023 |
8.8.2 | 94,091 | 8/23/2023 |
8.8.1 | 8,428 | 8/22/2023 |
8.7.2 | 125,503 | 7/16/2023 |
8.7.1 | 712,477 | 3/11/2023 |
8.7.0 | 289,389 | 1/4/2023 |
8.6.1 | 491,535 | 10/22/2022 |
8.6.0 | 51,650 | 10/11/2022 |
8.5.0 | 945,568 | 4/17/2022 |
8.4.1 | 161,899 | 3/24/2022 |
8.4.0 | 17,712 | 3/17/2022 |
8.3.0 | 517,830 | 11/25/2021 |
8.2.0 | 236,793 | 11/12/2021 |
8.1.0 | 48,566 | 10/22/2021 |
8.0.0 | 49,415 | 10/21/2021 |
7.7.0 | 144,426 | 10/14/2021 |
7.6.0 | 196,338 | 9/2/2021 |
7.5.1 | 139,963 | 8/31/2021 |
7.4.0 | 80,599 | 8/14/2021 |
7.3.0 | 274,068 | 7/9/2021 |
7.2.0 | 333,863 | 4/19/2021 |
7.1.0 | 388,949 | 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:
1.1.0: DependencyInjectionTestFramework class add Configure(IServiceProvider provider) method
1.2.0: DependencyInjectionTestFramework class add Configuration(IConfigurationBuilder builder) method
2.0.0: Change ConfigureServices retrun value from void to IServiceProvider; Decrease dependency package version.
3.0.0: Move ServiceScope from TestClass to TestCase.
3.1.0: Add ITestOutputHelperAccessor to access ITestOutputHelper.
4.0.0: Remove Microsoft.Extensions.Configuration, reduce the amount of package reference; Support Microsoft.Extensions.Logging to ITestOutputHelper.
4.1.0: Catch GetService Exception.
4.2.0: DependencyInjectionTestFramework add ConfigureServices overload.
4.3.0: Add IAsyncExceptionFilter, support Ben.Demystifier.
4.4.0: Add MemberDataAttribute support