Skip to content

Commit

Permalink
Suppress typo warnings in faker-generated text
Browse files Browse the repository at this point in the history
  • Loading branch information
bkoelman committed Dec 8, 2022
1 parent 008bc00 commit 84d01c3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"",
Expand Down Expand Up @@ -145,6 +146,7 @@ public void Resources_in_deeply_nested_circular_chain_are_written_in_relationshi
}
]
}");
// ReSharper restore StringLiteralTypo
}

[Fact]
Expand Down Expand Up @@ -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"": [
{
Expand Down Expand Up @@ -299,6 +302,7 @@ public void Resources_in_deeply_nested_circular_chains_are_written_in_relationsh
}
]
}");
// ReSharper restore StringLiteralTypo
}

[Fact]
Expand Down Expand Up @@ -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"",
Expand Down Expand Up @@ -514,6 +519,7 @@ public void Resources_in_overlapping_deeply_nested_circular_chains_are_written_i
}
]
}");
// ReSharper restore StringLiteralTypo
}

[Fact]
Expand Down

0 comments on commit 84d01c3

Please sign in to comment.