Exemple #1
0
        public void GetParameterExpressions_BlockExpression_NoError()
        {
            BlockExpression expression = Expression.Block(new[] { Expression.Parameter(typeof(int)) }, Expression.Constant(5));

            ParameterExpression[] parameters = expression.GetParameterExpressions();
            Assert.Single(parameters);
        }