public void OutVShouldAppendStepToNodeReference() { var node = new NodeReference(123); var query = node.OutV<object>(); Assert.AreEqual("g.v(p0).outV", query.QueryText); Assert.AreEqual(123, query.QueryParameters["p0"]); }
public void OutVShouldReturnTypedGremlinEnumerable() { var node = new NodeReference(123); var query = node.OutV <object>(); Assert.IsAssignableFrom <GremlinNodeEnumerable <object> >(query); }
public void OutVShouldAppendStepToNodeReference() { var node = new NodeReference(123); var query = node.OutV <object>(); Assert.Equal("g.v(p0).outV", query.QueryText); Assert.Equal(123L, query.QueryParameters["p0"]); }
public void GremlinTakeVShouldAppendStep() { var node = new NodeReference(123); var query = node.OutV<object>().GremlinTake<object>(5); Assert.IsInstanceOf<GremlinNodeEnumerable<object>>(query); Assert.AreEqual("g.v(p0).outV.take(p1)._()", query.QueryText); Assert.AreEqual(123, query.QueryParameters["p0"]); Assert.AreEqual(5, query.QueryParameters["p1"]); }
public void GremlinTakeVShouldAppendStep() { var node = new NodeReference(123); var query = node.OutV <object>().GremlinTake <object>(5); Assert.IsInstanceOf <GremlinNodeEnumerable <object> >(query); Assert.AreEqual("g.v(p0).outV.take(p1)._()", query.QueryText); Assert.AreEqual(123, query.QueryParameters["p0"]); Assert.AreEqual(5, query.QueryParameters["p1"]); }
public void GremlinSkipVShouldAppendStep() { var node = new NodeReference(123); var query = node.OutV <object>().GremlinSkip <object>(5); Assert.IsAssignableFrom <GremlinNodeEnumerable <object> >(query); Assert.Equal("g.v(p0).outV.drop(p1)._()", query.QueryText); Assert.Equal(123L, query.QueryParameters["p0"]); Assert.Equal(5, query.QueryParameters["p1"]); }
public void OutVShouldReturnTypedGremlinEnumerable() { var node = new NodeReference(123); var query = node.OutV<object>(); Assert.IsInstanceOf<GremlinNodeEnumerable<object>>(query); }