public void TestLikeExpressionAccept() { Mock <KoraliumSqlVisitor> mock = new Mock <KoraliumSqlVisitor>(); LikeExpression likeExpression = new LikeExpression(); likeExpression.Accept(mock.Object); mock.Verify(x => x.VisitLikeExpression(likeExpression)); }
public override void VisitLikeExpression(LikeExpression likeExpression) { LikeVisitor likeVisitor = new LikeVisitor(_previousStage, _visitorMetadata); likeExpression.Accept(likeVisitor); //Add the properties that was found in the like visitor foreach (var usedProperty in likeVisitor.UsedProperties) { AddUsedProperty(usedProperty); } expressions.Push(likeVisitor.Expression); }