public void CopySplitVShouldAppendStepAndPreserveOuterQueryParametersWithOneInlineBlocksAsNodeReference() { var node = new NodeReference(456); var query = new NodeReference(123).CopySplitE(new IdentityPipe().Out<object>("foo"), node.Out<object>("bar")).Out<object>("baz"); Assert.AreEqual("g.v(p0)._.copySplit(_().out(p1), g.v(p2).out(p3)).out(p4)", query.QueryText); Assert.AreEqual(123, query.QueryParameters["p0"]); Assert.AreEqual("foo", query.QueryParameters["p1"]); Assert.AreEqual(456, query.QueryParameters["p2"]); Assert.AreEqual("bar", query.QueryParameters["p3"]); Assert.AreEqual("baz", query.QueryParameters["p4"]); }
public void CopySplitVShouldAppendStepAndPreserveOuterQueryParametersWithOneInlineBlocksAsNodeReference() { var node = new NodeReference(456); var query = new NodeReference(123).CopySplitE(new IdentityPipe().Out <object>("foo"), node.Out <object>("bar")).Out <object>("baz"); Assert.Equal("g.v(p0)._.copySplit(_().out(p1), g.v(p2).out(p3)).out(p4)", query.QueryText); Assert.Equal(123L, query.QueryParameters["p0"]); Assert.Equal("foo", query.QueryParameters["p1"]); Assert.Equal(456L, query.QueryParameters["p2"]); Assert.Equal("bar", query.QueryParameters["p3"]); Assert.Equal("baz", query.QueryParameters["p4"]); }