Esempio n. 1
0
        public void VerticesSelectA()
        {
            using (GraphViewCommand command = new GraphViewCommand(graphConnection))
            {
                GremlinKeyword.Pop?[] pops = { null, GremlinKeyword.Pop.All, GremlinKeyword.Pop.First, GremlinKeyword.Pop.Last };
                foreach (GremlinKeyword.Pop?pop in pops)
                {
                    GraphTraversal2 root      = command.g().V();
                    GraphTraversal2 traversal = (!pop.HasValue) ? root.Select("a") : root.Select(pop.Value, "a");

                    List <string> result = traversal.Next();
                    Assert.AreEqual(0, result.Count);
                }
            }
        }