From bad80eb6063b2770cc7f5ea9b97886f5c5527430 Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Fri, 2 Aug 2024 09:42:49 +0100 Subject: [PATCH] Fix Kafka test which was broken by xUnit upgrade The production code behavior hasn't changed here, but Assert.Equal used to pass when presented with an empty string and an empty byte array. Signed-off-by: Jon Skeet --- test/CloudNative.CloudEvents.UnitTests/Kafka/KafkaTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CloudNative.CloudEvents.UnitTests/Kafka/KafkaTest.cs b/test/CloudNative.CloudEvents.UnitTests/Kafka/KafkaTest.cs index b8bcc0c..afe37f4 100644 --- a/test/CloudNative.CloudEvents.UnitTests/Kafka/KafkaTest.cs +++ b/test/CloudNative.CloudEvents.UnitTests/Kafka/KafkaTest.cs @@ -132,7 +132,7 @@ public void KafkaBinaryMessageTest() [Theory] [InlineData(MediaTypeNames.Application.Octet, new byte[0])] [InlineData(MediaTypeNames.Application.Json, null)] - [InlineData(MediaTypeNames.Application.Xml, "")] + [InlineData(MediaTypeNames.Application.Xml, new byte[0])] [InlineData(MediaTypeNames.Text.Plain, "")] [InlineData(null, null)] public void KafkaBinaryMessageTombstoneTest(string? contentType, object? expectedDecodedResult)