From 84d01c3067b95b6601868b6195838a2b21e94983 Mon Sep 17 00:00:00 2001 From: Bart Koelman <10324372+bkoelman@users.noreply.github.com> Date: Thu, 8 Dec 2022 13:15:53 +0100 Subject: [PATCH] Suppress typo warnings in faker-generated text --- .../Serialization/Response/ResponseModelAdapterTests.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/JsonApiDotNetCoreTests/UnitTests/Serialization/Response/ResponseModelAdapterTests.cs b/test/JsonApiDotNetCoreTests/UnitTests/Serialization/Response/ResponseModelAdapterTests.cs index d9459f7ec1..39279181dd 100644 --- a/test/JsonApiDotNetCoreTests/UnitTests/Serialization/Response/ResponseModelAdapterTests.cs +++ b/test/JsonApiDotNetCoreTests/UnitTests/Serialization/Response/ResponseModelAdapterTests.cs @@ -40,6 +40,7 @@ public void Resources_in_deeply_nested_circular_chain_are_written_in_relationshi // Assert string text = JsonSerializer.Serialize(document, new JsonSerializerOptions(options.SerializerWriteOptions)); + // ReSharper disable StringLiteralTypo text.Should().BeJson(@"{ ""data"": { ""type"": ""articles"", @@ -145,6 +146,7 @@ public void Resources_in_deeply_nested_circular_chain_are_written_in_relationshi } ] }"); + // ReSharper restore StringLiteralTypo } [Fact] @@ -177,6 +179,7 @@ public void Resources_in_deeply_nested_circular_chains_are_written_in_relationsh // Assert string text = JsonSerializer.Serialize(document, new JsonSerializerOptions(options.SerializerWriteOptions)); + // ReSharper disable StringLiteralTypo text.Should().BeJson(@"{ ""data"": [ { @@ -299,6 +302,7 @@ public void Resources_in_deeply_nested_circular_chains_are_written_in_relationsh } ] }"); + // ReSharper restore StringLiteralTypo } [Fact] @@ -335,6 +339,7 @@ public void Resources_in_overlapping_deeply_nested_circular_chains_are_written_i // Assert string text = JsonSerializer.Serialize(document, new JsonSerializerOptions(options.SerializerWriteOptions)); + // ReSharper disable StringLiteralTypo text.Should().BeJson(@"{ ""data"": { ""type"": ""articles"", @@ -514,6 +519,7 @@ public void Resources_in_overlapping_deeply_nested_circular_chains_are_written_i } ] }"); + // ReSharper restore StringLiteralTypo } [Fact]