private TestResult[] Invoke(ITestMethod testMethod)
        {
            if (_testMethodAttribute != null)
            {
                return(_testMethodAttribute.Execute(testMethod));
            }

            return(new[] { testMethod.Invoke(null) });
        }
        private TestResult [] Invoke(ITestMethod testMethod)
        {
            if (TestMethodAttribute != null)
            {
                return(TestMethodAttribute.Execute(testMethod));
            }

            IEnumerable <IParameterInfo>
            infos = testMethod.ParameterTypes.Select(x => new ParameterInfo(x));

            var arguments = Generator.Create(infos);

            return(new []
            {
                testMethod.Invoke(arguments)
            });
        }