Skip to content

Commit

Permalink
Modify unit test to avoid tripping the key scanner in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
normj committed Oct 31, 2024
1 parent f0ea6e7 commit b46db9e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,14 @@ public void FromJson_Long()
[TestMethod]
public void ToJson_Long()
{
var longValue = long.MaxValue - 100;
var document = new Document();
document["key"] = 9223372036854775806L;
document["key"] = longValue;

var json = document.ToJsonPretty();

var expectedJson = $@"{{
""key"": 9223372036854775806
""key"": {longValue}
}}";

Assert.AreEqual(expectedJson, json);
Expand Down

0 comments on commit b46db9e

Please sign in to comment.