Example #1
0
        public void GetMethodInfoStaticFunctionVariableTest()
        {
            Expression <Func <int> > expression = () => Test8.Method5();
            var result = ReflectionExpressions.GetMethodInfo(expression);

            Assert.AreEqual("Method5", result.Name);
        }
Example #2
0
        public void GetMethodInfoStaticFunctionTest()
        {
            var result = ReflectionExpressions.GetMethodInfo(() => Test8.Method5());

            Assert.AreEqual("Method5", result.Name);
        }