Exemple #1
0
        public static void Enumerate(TestMethod <object> numericTestMethod)
        {
            MethodInfo originalMethodInfo = numericTestMethod.GetMethodInfo();
            MethodInfo genericMethodInfo  = originalMethodInfo.GetGenericMethodDefinition();

            foreach (Type type in Types)
            {
                MethodInfo numericMethodInfo = genericMethodInfo.MakeGenericMethod(type);
                numericMethodInfo.Invoke(null, null);
            }
        }