Esempio n. 1
0
        // throws jjtraveler.VisitFailure
        public virtual void testBottomUp()
        {
            Identity id = new Identity();
            Logger expected = new Logger(id, new IVisitable[]{n0, n1, n3, n2, n4} );

            BottomUp  visitor = new BottomUp( logVisitor(id) );

            IVisitable nodeReturned = visitor.visit(n4);
            Assertion.AssertEquals(expected, logger);
            Assertion.AssertEquals(n4, nodeReturned);
        }