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