Skip to content

Commit

Permalink
Tighten up the test to ensure we don't add IAsyncDisposable to the te…
Browse files Browse the repository at this point in the history
…st stub
  • Loading branch information
nblumhardt committed Sep 27, 2024
1 parent b5085aa commit 6e5a82c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/Serilog.Tests/LogTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public async Task CloseAndFlushAsyncDisposesTheLogger()
public async Task CloseAndFlushAsyncDisposesTheLoggerEvenWhenItIsNotAsyncDisposable()
{
var disposableLogger = new SyncDisposableLogger();
Assert.IsNotAssignableFrom<IAsyncDisposable>(disposableLogger);
Log.Logger = disposableLogger;
await Log.CloseAndFlushAsync();
Assert.True(disposableLogger.IsDisposed);
Expand Down

0 comments on commit 6e5a82c

Please sign in to comment.