diff --git a/test/Seq.Api.Tests/SeqConnectionTests.cs b/test/Seq.Api.Tests/SeqConnectionTests.cs index 2c30f87..cbaa9bf 100644 --- a/test/Seq.Api.Tests/SeqConnectionTests.cs +++ b/test/Seq.Api.Tests/SeqConnectionTests.cs @@ -9,10 +9,12 @@ public void WhenConstructedTheHandlerConfigurationCallbackIsCalled() { var callCount = 0; +#pragma warning disable CS0618 // Type or member is obsolete using var _ = new SeqConnection("https://test.example.com", null, handler => { Assert.NotNull(handler); ++callCount; }); +#pragma warning restore CS0618 // Type or member is obsolete Assert.Equal(1, callCount); }