@@ -52,7 +52,7 @@ public class TestWrapperLoggerFactory(ILogger logger) : ILoggerFactory
5252 {
5353 public TestWrapperLogger Logger { get ; } = new TestWrapperLogger ( logger ) ;
5454
55- public void AddProvider ( ILoggerProvider provider ) => throw new NotImplementedException ( ) ;
55+ public void AddProvider ( ILoggerProvider provider ) { }
5656 public ILogger CreateLogger ( string categoryName ) => Logger ;
5757 public void Dispose ( ) { }
5858 }
@@ -81,9 +81,9 @@ public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Except
8181 private sealed class TestMultiLogger ( params ILogger [ ] loggers ) : ILogger
8282 {
8383#if NET8_0_OR_GREATER
84- public IDisposable ? BeginScope < TState > ( TState state ) where TState : notnull => throw new NotImplementedException ( ) ;
84+ public IDisposable ? BeginScope < TState > ( TState state ) where TState : notnull => null ;
8585#else
86- public IDisposable BeginScope < TState > ( TState state ) => throw new NotImplementedException ( ) ;
86+ public IDisposable BeginScope < TState > ( TState state ) => null ! ;
8787#endif
8888 public bool IsEnabled ( LogLevel logLevel ) => true ;
8989 public void Log < TState > ( LogLevel logLevel , EventId eventId , TState state , Exception ? exception , Func < TState , Exception ? , string > formatter )
@@ -105,9 +105,9 @@ public TestLogger(LogLevel logLevel, TextWriter output) =>
105105 ( _logLevel , _output ) = ( logLevel , output ) ;
106106
107107#if NET8_0_OR_GREATER
108- public IDisposable ? BeginScope < TState > ( TState state ) where TState : notnull => throw new NotImplementedException ( ) ;
108+ public IDisposable ? BeginScope < TState > ( TState state ) where TState : notnull => null ;
109109#else
110- public IDisposable BeginScope < TState > ( TState state ) => throw new NotImplementedException ( ) ;
110+ public IDisposable BeginScope < TState > ( TState state ) => null ! ;
111111#endif
112112 public bool IsEnabled ( LogLevel logLevel ) => logLevel >= _logLevel ;
113113 public void Log < TState > ( LogLevel logLevel , EventId eventId , TState state , Exception ? exception , Func < TState , Exception ? , string > formatter )
0 commit comments