From e9d71aa6f34756b45f612799c75ffbee2bd87bba Mon Sep 17 00:00:00 2001 From: Nicholas Blumhardt Date: Fri, 22 Mar 2024 12:55:50 +1000 Subject: [PATCH] Suppress warning in test for deprecated API --- test/Seq.Api.Tests/SeqConnectionTests.cs | 2 ++ 1 file changed, 2 insertions(+) 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); }