From a783a51fd2dfd9d0f3ba9218b9f42a53174c1d1b Mon Sep 17 00:00:00 2001 From: Martin Tomka Date: Wed, 26 Jul 2023 14:24:36 +0200 Subject: [PATCH] new test --- test/Polly.Extensions.Tests/Utils/TelemetryUtilTests.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/Polly.Extensions.Tests/Utils/TelemetryUtilTests.cs b/test/Polly.Extensions.Tests/Utils/TelemetryUtilTests.cs index 23ea7f45c3c..328f9f83431 100644 --- a/test/Polly.Extensions.Tests/Utils/TelemetryUtilTests.cs +++ b/test/Polly.Extensions.Tests/Utils/TelemetryUtilTests.cs @@ -25,4 +25,11 @@ public void AsBoxedInt_Ok() (-1).AsBoxedInt().Should().NotBeSameAs((-1).AsBoxedInt()); 100.AsBoxedInt().Should().NotBeSameAs(100.AsBoxedInt()); } + + [Fact] + public void GetValueOrPlaceholder_Ok() + { + TelemetryUtil.GetValueOrPlaceholder("dummy").Should().Be("dummy"); + TelemetryUtil.GetValueOrPlaceholder(null).Should().Be("(null)"); + } }