public MethodInfo[] ListTestMethods(string[] testAssemblyPaths)
        {
            var testMethods = new List <MethodInfo>();

            foreach (var testAssemblyPath in testAssemblyPaths)
            {
                var testAssembly = _assemblyHelper.LoadFrom(testAssemblyPath);
                testMethods.AddRange(_testFrameWorkStrategy.RetrieveTestMethods(testAssembly));
            }

            return(testMethods.ToArray());
        }
        public MethodInfo[] ListTestMethods(string[] testAssemblyPaths)
        {
            var testMethods = new List <MethodInfo>();

            foreach (var testAssemblyPath in testAssemblyPaths)
            {
                var testAssembly = _assemblyHelper.LoadFrom(testAssemblyPath);
                testMethods.AddRange(testAssembly.GetTypes()
                                     .Where(type => type.GetCustomAttribute <TestClassAttribute>() != null)
                                     .SelectMany(type => type.GetMethods()
                                                 .Where(method => method.GetCustomAttribute <TestMethodAttribute>() != null)));
            }

            return(testMethods.ToArray());
        }