public void TestVariableReferenceAccept() { Mock <KoraliumSqlVisitor> mock = new Mock <KoraliumSqlVisitor>(); VariableReference variableReference = new VariableReference(); variableReference.Accept(mock.Object); mock.Verify(x => x.VisitVariableReference(variableReference)); }
public override void VisitChildren(AstVisitor visitor) { if (HasExpression) { Expression.Accept(visitor); } LiteralBoolean?.Accept(visitor); LiteralNumeric?.Accept(visitor); LiteralString?.Accept(visitor); VariableReference?.Accept(visitor); FunctionReference?.Accept(visitor); FieldReference?.Accept(visitor); }
public void VisitorWithReturnIsImplemented() { var sut = new VariableReference(); sut.Accept(23).VerifyWithReturn(v => v.Visit(sut, 23)); }