File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ namespace Xunit.Microsoft.DependencyInjection.Abstracts;
44
55public abstract class TestBedFixture : IDisposable , IAsyncDisposable
66{
7- private readonly IServiceCollection _services ;
7+ private readonly ServiceCollection _services ;
88 private ServiceProvider ? _serviceProvider ;
99 private bool _disposedValue ;
1010 private bool _disposedAsync ;
@@ -79,6 +79,7 @@ public async ValueTask DisposeAsync()
7979 Dispose ( ) ;
8080 _disposedAsync = true ;
8181 }
82+ GC . SuppressFinalize ( this ) ;
8283 }
8384
8485 protected abstract void AddServices ( IServiceCollection services , IConfiguration ? configuration ) ;
Original file line number Diff line number Diff line change @@ -7,7 +7,5 @@ public class OutputLoggerProvider(ITestOutputHelper testOutputHelper) : ILoggerP
77 public ILogger CreateLogger ( string categoryName )
88 => new OutputLogger ( categoryName , _testOutputHelper ) ;
99
10- public void Dispose ( )
11- {
12- }
10+ public void Dispose ( ) => GC . SuppressFinalize ( this ) ;
1311}
You can’t perform that action at this time.
0 commit comments