public void BreakNodesCanBeVisited() { object got = null; var testVisitor = new TestASTVisitor(); testVisitor.VisitBreakHandler = node => got = node; subject.Accept(testVisitor); Assert.AreEqual(got, subject); }