We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae227d5 commit b037784Copy full SHA for b037784
src/libraries/System.Text.Json/tests/Utf8JsonWriterTests.cs
@@ -752,7 +752,7 @@ public void WriteLargeJsonToStreamWithoutFlushing()
752
Assert.Equal(1_050_097_521, writer.BytesPending);
753
754
// Next write forces a grow beyond 2 GB
755
- Assert.Throws<OverflowException>(() => writer.WriteStringValue(text3));
+ Assert.Throws<OutOfMemoryException>(() => writer.WriteStringValue(text3));
756
757
758
0 commit comments