Skip to content

Commit 84d01c3

Browse files
committed
Suppress typo warnings in faker-generated text
1 parent 008bc00 commit 84d01c3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/JsonApiDotNetCoreTests/UnitTests/Serialization/Response/ResponseModelAdapterTests.cs

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public void Resources_in_deeply_nested_circular_chain_are_written_in_relationshi
4040
// Assert
4141
string text = JsonSerializer.Serialize(document, new JsonSerializerOptions(options.SerializerWriteOptions));
4242

43+
// ReSharper disable StringLiteralTypo
4344
text.Should().BeJson(@"{
4445
""data"": {
4546
""type"": ""articles"",
@@ -145,6 +146,7 @@ public void Resources_in_deeply_nested_circular_chain_are_written_in_relationshi
145146
}
146147
]
147148
}");
149+
// ReSharper restore StringLiteralTypo
148150
}
149151

150152
[Fact]
@@ -177,6 +179,7 @@ public void Resources_in_deeply_nested_circular_chains_are_written_in_relationsh
177179
// Assert
178180
string text = JsonSerializer.Serialize(document, new JsonSerializerOptions(options.SerializerWriteOptions));
179181

182+
// ReSharper disable StringLiteralTypo
180183
text.Should().BeJson(@"{
181184
""data"": [
182185
{
@@ -299,6 +302,7 @@ public void Resources_in_deeply_nested_circular_chains_are_written_in_relationsh
299302
}
300303
]
301304
}");
305+
// ReSharper restore StringLiteralTypo
302306
}
303307

304308
[Fact]
@@ -335,6 +339,7 @@ public void Resources_in_overlapping_deeply_nested_circular_chains_are_written_i
335339
// Assert
336340
string text = JsonSerializer.Serialize(document, new JsonSerializerOptions(options.SerializerWriteOptions));
337341

342+
// ReSharper disable StringLiteralTypo
338343
text.Should().BeJson(@"{
339344
""data"": {
340345
""type"": ""articles"",
@@ -514,6 +519,7 @@ public void Resources_in_overlapping_deeply_nested_circular_chains_are_written_i
514519
}
515520
]
516521
}");
522+
// ReSharper restore StringLiteralTypo
517523
}
518524

519525
[Fact]

0 commit comments

Comments
 (0)