public void ExternalContextOnly_ToJsonLdStringMatchesReferenceJson() { var parent = new Parent { Id = new Uri( "http://localhost/test/1" ), Name = "MyParent", }; JsonAssertions.AssertSameJsonLdObject( parent, "ExternalContextOnly" ); }
public void ExternalAndInternalContexts_MatchesReferenceJson() { var parent = new Parent { Id = new Uri("http://localhost/test/1"), Name = "MyParent", Child = new Child { Name = "MyChild", GrandChild = new Child { Name = "MyGrandChild" } } }; JsonAssertions.AssertSameJsonLdObject( parent, "ExternalAndInternalContexts"); }