コード例 #1
0
 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"]);
 }
コード例 #2
0
        public void OutVShouldReturnTypedGremlinEnumerable()
        {
            var node  = new NodeReference(123);
            var query = node.OutV <object>();

            Assert.IsAssignableFrom <GremlinNodeEnumerable <object> >(query);
        }
コード例 #3
0
        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"]);
        }
コード例 #4
0
 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"]);
 }
コード例 #5
0
        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"]);
        }
コード例 #6
0
        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"]);
        }
コード例 #7
0
 public void OutVShouldReturnTypedGremlinEnumerable()
 {
     var node = new NodeReference(123);
     var query = node.OutV<object>();
     Assert.IsInstanceOf<GremlinNodeEnumerable<object>>(query);
 }