GoogleTestAdapter.TestAdapter.TestExecutor.GetAllTestCasesInExecutables C# (CSharp) Method

GetAllTestCasesInExecutables() private method

private GetAllTestCasesInExecutables ( IEnumerable executables ) : IEnumerable
executables IEnumerable
return IEnumerable
        private IEnumerable<TestCase> GetAllTestCasesInExecutables(IEnumerable<string> executables)
        {
            var allTestCasesInExecutables = new List<TestCase>();

            var discoverer = new GoogleTestDiscoverer(_testEnvironment);
            foreach (string executable in executables.OrderBy(e => e))
            {
                if (_canceled)
                {
                    allTestCasesInExecutables.Clear();
                    break;
                }

                allTestCasesInExecutables.AddRange(discoverer.GetTestsFromExecutable(executable));
            }

            return allTestCasesInExecutables;
        }