diff --git a/MicrosoftExtensions/Logging/Xunit/MicrosoftExtensions.Logging.Xunit/XunitLogger.cs b/MicrosoftExtensions/Logging/Xunit/MicrosoftExtensions.Logging.Xunit/XunitLogger.cs index 97bea068..c1c82546 100644 --- a/MicrosoftExtensions/Logging/Xunit/MicrosoftExtensions.Logging.Xunit/XunitLogger.cs +++ b/MicrosoftExtensions/Logging/Xunit/MicrosoftExtensions.Logging.Xunit/XunitLogger.cs @@ -5,7 +5,7 @@ using System; using System.Text; -using Microsoft.Extensions.Logging.Abstractions.Internal; +using Microsoft.Extensions.Logging.Abstractions; using Xunit.Abstractions; namespace Microsoft.Extensions.Logging.Xunit @@ -36,7 +36,7 @@ public XunitLogger(ITestOutputHelper testOutputHelper, string name) public IDisposable BeginScope(TState state) { - return NullScope.Instance; + return NullLogger.Instance.BeginScope(state); } public bool IsEnabled(LogLevel logLevel) => true;