diff --git a/README.md b/README.md index 85c604f..e75b1a1 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Install the [Nuget](https://www.nuget.org/packages/Xunit.DependencyInjection) package. -``` bash +``` sh dotnet add package Xunit.DependencyInjection ``` @@ -54,7 +54,7 @@ public class MyAwesomeTests ### Asp.Net Core Startup -``` bash +``` sh dotnet add package Microsoft.AspNetCore.TestHost ``` @@ -72,7 +72,9 @@ public class Startup If you use MinimalApi rather than asp.net core Startup class. -``` bash +Add package reference for `Xunit.DependencyInjection.AspNetCoreTesting` + +``` sh dotnet add package Xunit.DependencyInjection.AspNetCoreTesting ``` @@ -226,6 +228,12 @@ internal class DependencyClass : IDependency ## Write `Microsoft.Extensions.Logging` to `ITestOutputHelper` +Add package reference for `Xunit.DependencyInjection.Logging` + +```sh +dotnet add package Xunit.DependencyInjection.Logging +``` + > The call chain must be from the test case. If not, this feature will not work. ``` C#