We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed0301a + 0e9938a commit 5528425Copy full SHA for 5528425
UnitTests/Automation_Tests.cs
@@ -334,4 +334,15 @@ public void JsonConverterIPAddress_Write_NullWriter()
334
});
335
}
336
337
+ [TestMethod]
338
+ public void JsonConverterIPAddress_Write_NullValue()
339
+ {
340
+ using var memoryStream = new MemoryStream();
341
+ using var writer = new Utf8JsonWriter(memoryStream, new() { SkipValidation = true });
342
+ var converter = new JsonConverterIPAddress();
343
+ Assert.ThrowsException<ArgumentNullException>(() =>
344
345
+ converter.Write(writer, null!, JsonSerializerOptions.Default);
346
+ });
347
+ }
348
0 commit comments