mirror of
https://github.com/Smaug123/WoofWare.Myriad
synced 2025-10-08 13:38:39 +00:00
24 lines
504 B
Forth
24 lines
504 B
Forth
namespace WoofWare.Myriad.Plugins.Test
|
|
|
|
open System.Text.Json.Nodes
|
|
open FsUnitTyped
|
|
open NUnit.Framework
|
|
open ConsumePlugin
|
|
|
|
[<TestFixture>]
|
|
module TestJsonNullability =
|
|
|
|
[<Test>]
|
|
let ``Can consume JsonParseNullness`` () =
|
|
let options = JsonNodeOptions (PropertyNameCaseInsensitive = true)
|
|
|
|
"""{
|
|
"b": null
|
|
}"""
|
|
|> fun s -> JsonNode.Parse (s, options)
|
|
|> ArrayOfInnerStruct.jsonParse
|
|
|> shouldEqual
|
|
{
|
|
B = null
|
|
}
|