From 50efa2ed1aa389b07c3360afa3bdc2335ac144f0 Mon Sep 17 00:00:00 2001
From: Marton Balassa <7115274+BalassaMarton@users.noreply.github.com>
Date: Wed, 17 Jan 2024 16:37:54 +0100
Subject: [PATCH] Fixed test for Utf8JsonReaderExtensions

---
 .../Protocol/Json/Utf8JsonReaderExtensions.Tests.cs    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/messaging/dotnet/test/Core.Tests/Protocol/Json/Utf8JsonReaderExtensions.Tests.cs b/src/messaging/dotnet/test/Core.Tests/Protocol/Json/Utf8JsonReaderExtensions.Tests.cs
index 1df838170..703a00d90 100644
--- a/src/messaging/dotnet/test/Core.Tests/Protocol/Json/Utf8JsonReaderExtensions.Tests.cs
+++ b/src/messaging/dotnet/test/Core.Tests/Protocol/Json/Utf8JsonReaderExtensions.Tests.cs
@@ -20,7 +20,7 @@ namespace MorganStanley.ComposeUI.Messaging.Protocol.Json;
 
 public class Utf8JsonReaderExtensionsTests
 {
-    [Theory(Skip ="ci fail")]
+    [Theory]
     [ClassData(typeof(CopyStringTheoryData))]
     public void CopyString_writes_the_unescaped_UTF8_string_to_the_buffer(CopyStringTestData testData)
     {
@@ -55,10 +55,10 @@ public Utf8JsonReader CreateReader()
                 reader = new Utf8JsonReader(MemoryHelper.CreateMultipartSequence(_utf8Buffers));
             }
 
-            Debug.Assert(reader.Read());
-            Debug.Assert(reader.TokenType == JsonTokenType.StartArray);
-            Debug.Assert(reader.Read());
-            Debug.Assert(reader.TokenType == JsonTokenType.String);
+            reader.Read().Should().Be(true);
+            reader.TokenType.Should().Be(JsonTokenType.StartArray);
+            reader.Read().Should().Be(true);
+            reader.TokenType.Should().Be(JsonTokenType.String);
 
             return reader;
         }