Skip to content

Commit

Permalink
Fixed test for Utf8JsonReaderExtensions
Browse files Browse the repository at this point in the history
  • Loading branch information
BalassaMarton committed Jan 17, 2024
1 parent cb5188c commit 50efa2e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 50efa2e

Please sign in to comment.