public void ParseStruct() { Assert.Equal(new Struct { Fields = { { "x", Value.ForNumber(1) }, { "y", Value.ForString("z") } } }, Struct.Parser.ParseText("x: 1, y: \"z\"")); }
public void ParseListValue() { Assert.Equal(new ListValue { Values = { Value.ForNumber(1), Value.ForString("x") } }, ListValue.Parser.ParseText("[1, \"x\"]")); }
public void StructValue_List() { Assert.Equal(Value.ForList(Value.ForNumber(1), Value.ForString("x")), Value.Parser.ParseText("[1, \"x\"]")); }