private void DoRunTests(
IEnumerable<TestCase> allTestCasesInExecutables, ICollection<TestCase> testCasesToRun,
IRunContext runContext, IFrameworkHandle frameworkHandle, Stopwatch stopwatch)
{
bool isRunningInsideVisualStudio = !string.IsNullOrEmpty(runContext.SolutionDirectory);
var reporter = new VsTestFrameworkReporter(frameworkHandle, isRunningInsideVisualStudio);
var launcher = new DebuggedProcessLauncher(frameworkHandle);
_executor = new GoogleTestExecutor(_testEnvironment);
_executor.RunTests(allTestCasesInExecutables, testCasesToRun, reporter, launcher,
runContext.IsBeingDebugged, runContext.SolutionDirectory);
reporter.AllTestsFinished();
stopwatch.Stop();
_testEnvironment.LogInfo($"Google Test execution completed, overall duration: {stopwatch.Elapsed}.");
}