public async Task InitAndDisposeTest() { // arrange var sut = new AsyncExifTool(AsyncExifToolConfigurationFactory.Create()); // act sut.Initialize(); #if NETCOREAPP3_0 await sut.DisposeAsync().ConfigureAwait(false); #else await Task.Yield(); sut.Dispose(); #endif // assert // sut.IsClosed.Should().Be(true); }