private void RunTests(IRunContext runContext, IFrameworkHandle testExecutionRecorder)
        {
            if (runContext.InIsolation)
                launcher.TestProject.TestRunnerFactoryName = StandardTestRunnerFactoryNames.IsolatedAppDomain;

            var extension = new VSTestWindowExtension(testExecutionRecorder, testCaseFactory, testResultFactory);

            launcher.TestProject.AddTestRunnerExtension(extension);
            launcher.Run();
        }
        private void RunTests(IRunContext runContext, IFrameworkHandle testExecutionRecorder)
        {
            if (runContext.InIsolation)
            {
                launcher.TestProject.TestRunnerFactoryName = StandardTestRunnerFactoryNames.IsolatedAppDomain;
            }

            var extension = new VSTestWindowExtension(testExecutionRecorder, testCaseFactory, testResultFactory);

            launcher.TestProject.AddTestRunnerExtension(extension);
            launcher.Run();
        }
        private void RunTests(IRunContext runContext, IFrameworkHandle testExecutionRecorder)
        {
            try
            {
                Log(Environment.CurrentDirectory +  " " + runContext.SolutionDirectory + " " + runContext.TestRunDirectory);
                Log(Environment.Is64BitProcess + " " + LoaderManager.Loader.RuntimePath);
                // testExecutionRecorder.RecordEnd();
                //if (runContext.InIsolation)
                launcher.TestProject.TestRunnerFactoryName = StandardTestRunnerFactoryNames.IsolatedAppDomain;

                var extension = new VSTestWindowExtension(testExecutionRecorder, testCaseFactory, testResultFactory);

                launcher.TestProject.AddTestRunnerExtension(extension);
                launcher.Run();

            }
            catch (Exception e)
            {
               Log(e.ToString());
               throw;
            }
        }