Skip to content

Commit da4dd21

Browse files
Restrict indentation size in JsonWriterOptions theories. (#101525)
Co-authored-by: Eirik Tsarpalis <[email protected]>
1 parent 3c85db9 commit da4dd21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Utf8JsonWriterTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7637,7 +7637,7 @@ private static IEnumerable<JsonWriterOptions> JsonOptions()
76377637
return from indented in new[] { true, false }
76387638
from skipValidation in new[] { true, false }
76397639
from indentCharacter in indented ? new char?[] { null, ' ', '\t' } : []
7640-
from indentSize in indented ? new int?[] { null, 0, 1, 2, 127 } : []
7640+
from indentSize in indented ? new int?[] { null, 0, 1, 2, 3 } : []
76417641
from newLine in indented ? new string?[] { null, "\n", "\r\n" } : []
76427642
select CreateOptions(indented, indentCharacter, indentSize, skipValidation, newLine);
76437643

0 commit comments

Comments
 (0)