Beispiel #1
0
        private static ReflectionMethodInfo GetMethodInfo(Type testClass, string methodName)
        {
            var method = testClass.GetMethod(methodName);
            var retval = new ReflectionMethodInfo(method);

            return(retval);
        }
Beispiel #2
0
        private static IAttributeInfo GetFactAttribute(ReflectionMethodInfo methodInfo)
        {
            var customAttributes = methodInfo.GetCustomAttributes(FactAttributeType);
            var retval           = customAttributes.Single();

            return(retval);
        }