Example #1
0
        public void WhereExpression_Accept()
        {
            // Setup test
            MockExpressionVisitor visitor = new MockExpressionVisitor();

            // Perform the test operation
            visitor.Visit(expression);

            // Check test result
            Assert.IsTrue(visitor.WhereVisited);
        }
        public void FieldExpression_AcceptDeclarationSql()
        {
            // Setup test
            MockExpressionVisitor visitor = new MockExpressionVisitor();

            // Perform the test operation
            expression.AcceptDeclarationSql(visitor);

            // Check test result
            Assert.IsTrue(visitor.FieldDeclarationVisited);
        }