Ejemplo n.º 1
0
        public void CallOneParameterStaticMethod()
        {
            Expression <Action> lambda = () => ClassWithMethods.OneParameterStaticMethod("foo");
            var methodCallExpression   = (MethodCallExpression)lambda.Body;

            QUnit.AreEqual(methodCallExpression.Method.Name, "OneParameterStaticMethod");
            var argument = (ConstantExpression)methodCallExpression.Arguments[0];

            QUnit.AreEqual(argument.Value, "foo");
        }