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 <jonskeet@google.com>
This commit is contained in:
Jon Skeet 2024-08-02 09:42:49 +01:00
parent d9831a393d
commit 14cb9f5c02
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ namespace CloudNative.CloudEvents.Kafka.UnitTests
[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)