diff --git a/test/Support.NewtonsoftJson.Tests/GraphsonSupportTest.Property_as_object.verified.txt b/test/Support.NewtonsoftJson.Tests/GraphsonSupportTest.Property_as_object.verified.txt new file mode 100644 index 000000000..e9ff5f2cc --- /dev/null +++ b/test/Support.NewtonsoftJson.Tests/GraphsonSupportTest.Property_as_object.verified.txt @@ -0,0 +1,6 @@ +[ + { + Value: 1540202009475, + Key: Property1 + } +] \ No newline at end of file diff --git a/test/Support.NewtonsoftJson.Tests/GraphsonSupportTest.VertexProperty_as_object.verified.txt b/test/Support.NewtonsoftJson.Tests/GraphsonSupportTest.VertexProperty_as_object.verified.txt new file mode 100644 index 000000000..9f6ee985b --- /dev/null +++ b/test/Support.NewtonsoftJson.Tests/GraphsonSupportTest.VertexProperty_as_object.verified.txt @@ -0,0 +1,10 @@ +[ + { + Id: 1, + Label: Property1, + Properties: { + metaKey: MetaValue + }, + Value: 1540202009475 + } +] \ No newline at end of file diff --git a/test/Tests.Infrastructure/GraphsonSupportTestBase.cs b/test/Tests.Infrastructure/GraphsonSupportTestBase.cs index 6eaf0f4de..f57d5e6bc 100644 --- a/test/Tests.Infrastructure/GraphsonSupportTestBase.cs +++ b/test/Tests.Infrastructure/GraphsonSupportTestBase.cs @@ -142,6 +142,12 @@ public Task Configured_property_name() => Verify( [Fact] public Task VertexProperties() => Verify>(GetJson("VertexProperties")); + [Fact] + public Task VertexProperty_as_object() => Verify("[ { \"value\": 1540202009475, \"id\": 1, \"label\": \"Property1\", \"properties\": { \"metaKey\": \"MetaValue\" } } ]"); + + [Fact] + public Task Property_as_object() => Verify("[ { \"value\": 1540202009475, \"key\": \"Property1\" } ]"); + [Fact] public Task VertexProperties_with_model() => Verify>(GetJson("VertexProperties"));