private static NUnit.Core.TestRunner CreateTestRunner(string assemblyLocation)
        {
            NUnit.Core.TestPackage package = new NUnit.Core.TestPackage(@"Tests");

            // The SetupFixture feature requires namespace suites even though we
            // would prefer to turn this off since the namespaces are mainly a presentation concern.
            package.Settings.Add(@"AutoNamespaceSuites", true);
            package.Assemblies.Add(assemblyLocation);

            NUnit.Core.TestRunner runner = new NUnit.Core.RemoteTestRunner();
            if (!runner.Load(package))
                throw new ModelException(Resources.NUnitTestExplorer_CannotLoadNUnitTestAssemblies);

            return runner;
        }
        private static NUnit.Core.TestRunner CreateTestRunner(string assemblyLocation)
        {
            NUnit.Core.TestPackage package = new NUnit.Core.TestPackage(@"Tests");

            // The SetupFixture feature requires namespace suites even though we
            // would prefer to turn this off since the namespaces are mainly a presentation concern.
            package.Settings.Add(@"AutoNamespaceSuites", true);
            package.Assemblies.Add(assemblyLocation);

            NUnit.Core.TestRunner runner = new NUnit.Core.RemoteTestRunner();
            if (!runner.Load(package))
            {
                throw new ModelException(Resources.NUnitTestExplorer_CannotLoadNUnitTestAssemblies);
            }

            return(runner);
        }