예제 #1
0
        public void BreakNodesCanBeVisited()
        {
            object got         = null;
            var    testVisitor = new TestASTVisitor();

            testVisitor.VisitBreakHandler = node => got = node;

            subject.Accept(testVisitor);

            Assert.AreEqual(got, subject);
        }