Skip to content

Commit

Permalink
Add tests that target the property heuristic converter.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweber committed Nov 8, 2024
1 parent 1291b3f commit 3077119
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
Value: 1540202009475,
Key: Property1
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
Id: 1,
Label: Property1,
Properties: {
metaKey: MetaValue
},
Value: 1540202009475
}
]
6 changes: 6 additions & 0 deletions test/Tests.Infrastructure/GraphsonSupportTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ public Task Configured_property_name() => Verify<Person>(
[Fact]
public Task VertexProperties() => Verify<VertexProperty<object>>(GetJson("VertexProperties"));

[Fact]
public Task VertexProperty_as_object() => Verify<object>("[ { \"value\": 1540202009475, \"id\": 1, \"label\": \"Property1\", \"properties\": { \"metaKey\": \"MetaValue\" } } ]");

[Fact]
public Task Property_as_object() => Verify<object>("[ { \"value\": 1540202009475, \"key\": \"Property1\" } ]");

[Fact]
public Task VertexProperties_with_model() => Verify<VertexProperty<object, MetaPoco>>(GetJson("VertexProperties"));

Expand Down

0 comments on commit 3077119

Please sign in to comment.