示例#1
0
 public void GremlinTakeEWithTDataShouldAppendStep()
 {
     var node = new NodeReference(123);
     var query = node.OutE<object>().GremlinTake<object>(5);
     Assert.IsInstanceOf<GremlinRelationshipEnumerable<object>>(query);
     Assert.AreEqual("g.v(p0).outE.take(p1)._()", query.QueryText);
     Assert.AreEqual(123, query.QueryParameters["p0"]);
     Assert.AreEqual(5, query.QueryParameters["p1"]);
 }
示例#2
0
 public void GremlinSkipEShouldAppendStep()
 {
     var node = new NodeReference(123);
     var query = node.OutE().GremlinSkip(5);
     Assert.IsInstanceOf<GremlinRelationshipEnumerable>(query);
     Assert.AreEqual("g.v(p0).outE.drop(p1)._()", query.QueryText);
     Assert.AreEqual(123, query.QueryParameters["p0"]);
     Assert.AreEqual(5, query.QueryParameters["p1"]);
 }
示例#3
0
        public void GremlinTakeEWithTDataShouldAppendStep()
        {
            var node  = new NodeReference(123);
            var query = node.OutE <object>().GremlinTake <object>(5);

            Assert.IsInstanceOf <GremlinRelationshipEnumerable <object> >(query);
            Assert.AreEqual("g.v(p0).outE.take(p1)._()", query.QueryText);
            Assert.AreEqual(123, query.QueryParameters["p0"]);
            Assert.AreEqual(5, query.QueryParameters["p1"]);
        }
示例#4
0
        public void GremlinSkipEShouldAppendStep()
        {
            var node  = new NodeReference(123);
            var query = node.OutE().GremlinSkip(5);

            Assert.IsInstanceOf <GremlinRelationshipEnumerable>(query);
            Assert.AreEqual("g.v(p0).outE.drop(p1)._()", query.QueryText);
            Assert.AreEqual(123, query.QueryParameters["p0"]);
            Assert.AreEqual(5, query.QueryParameters["p1"]);
        }
示例#5
0
        public void GremlinTakeEShouldAppendStep()
        {
            var node  = new NodeReference(123);
            var query = node.OutE().GremlinTake(5);

            Assert.IsAssignableFrom <GremlinRelationshipEnumerable>(query);
            Assert.Equal("g.v(p0).outE.take(p1)._()", query.QueryText);
            Assert.Equal(123L, query.QueryParameters["p0"]);
            Assert.Equal(5, query.QueryParameters["p1"]);
        }
示例#6
0
        public void GremlinSkipEWithTDataShouldAppendStep()
        {
            var node  = new NodeReference(123);
            var query = node.OutE <object>().GremlinSkip <object>(5);

            Assert.IsAssignableFrom <GremlinRelationshipEnumerable <object> >(query);
            Assert.Equal("g.v(p0).outE.drop(p1)._()", query.QueryText);
            Assert.Equal(123L, query.QueryParameters["p0"]);
            Assert.Equal(5, query.QueryParameters["p1"]);
        }