示例#1
0
        public virtual void testStopWalkCallsParent()
        {
            bool[] called = new bool[1];
            Assert.IsFalse(called[0]);

            // [ammachado]: Anonymous inner classes are not convertable to .NET:
            EmptyTreeIterator parent = new AnonymousTreeIterator(called);


            parent.createSubtreeIterator(db).stopWalk();
            Assert.IsTrue(called[0]);
        }
        public virtual void testStopWalkCallsParent()
        {
            bool[] called = new bool[1];
            Assert.IsFalse(called[0]);

            // [ammachado]: Anonymous inner classes are not convertable to .NET:
            EmptyTreeIterator parent = new AnonymousTreeIterator(called);

            parent.createSubtreeIterator(db).stopWalk();
            Assert.IsTrue(called[0]);
        }