Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void depths()
        public virtual void Depths()
        {
            Node a = GetNodeWithName("a");

            ExpectPaths(GraphDb.traversalDescription().evaluator(Evaluators.atDepth(1)).traverse(a), "a,b", "a,f");
            ExpectPaths(GraphDb.traversalDescription().evaluator(Evaluators.fromDepth(2)).traverse(a), "a,f,g", "a,b,h", "a,b,h,i", "a,b,h,i,k", "a,b,c", "a,b,c,d", "a,b,c,d,e", "a,b,c,d,e,j");
            ExpectPaths(GraphDb.traversalDescription().evaluator(Evaluators.toDepth(2)).traverse(a), "a", "a,b", "a,b,c", "a,b,h", "a,f", "a,f,g");
        }
Пример #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldGetStartNodeWhenAtIsZeroBreadthFirst()
        public virtual void ShouldGetStartNodeWhenAtIsZeroBreadthFirst()
        {
            TraversalDescription description = GraphDb.traversalDescription().breadthFirst().evaluator(Evaluators.atDepth(0));

            ExpectNodes(description.Traverse(GetNodeWithName("2")), "2");
        }
Пример #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldGetCorrectNodesAtDepthZero()
        public virtual void ShouldGetCorrectNodesAtDepthZero()
        {
            TraversalDescription description = GraphDb.traversalDescription().evaluator(Evaluators.fromDepth(0)).evaluator(Evaluators.toDepth(0));

            ExpectNodes(description.Traverse(GetNodeWithName("6")), "6");
        }
Пример #4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldGetCorrectNodeAtDepthOne()
        public virtual void ShouldGetCorrectNodeAtDepthOne()
        {
            TraversalDescription description = GraphDb.traversalDescription().evaluator(Evaluators.atDepth(1));

            ExpectNodes(description.Traverse(GetNodeWithName("6")), "5");
        }
Пример #5
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldGetSecondNodeWhenFromToIsTwoBreadthFirst()
        public virtual void ShouldGetSecondNodeWhenFromToIsTwoBreadthFirst()
        {
            TraversalDescription description = GraphDb.traversalDescription().breadthFirst().evaluator(Evaluators.fromDepth(2)).evaluator(Evaluators.toDepth(2));

            ExpectNodes(description.Traverse(GetNodeWithName("5")), "2");
        }