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;
}