public void DiscoverTestsWithoutLockingDlls(IEnumerable<string> sources, IMessageLogger logger, ITestCaseDiscoverySink discoverySink)
 {
     var frameworkLogger = new TestFrameworkLogger(logger);
     try
     {
         var testRunnerManager = RuntimeAccessor.ServiceLocator.Resolve<ITestRunnerManager>();
         // Do not use Local because then the dlls with tests will be locked by the discovery process
         var testRunnerFactory = testRunnerManager.GetFactory(StandardTestRunnerFactoryNames.IsolatedAppDomain);
         var runner = testRunnerFactory.CreateTestRunner();
         runner.Initialize(new TestRunnerOptions(), frameworkLogger, new ObservableProgressMonitor());
         var testPackage = CreateTestPackage(sources);
         var tests = FindTests(testPackage, runner);
         testCaseFactory.AddSources(sources);
         SendTestCasesToVisualStudio(discoverySink, tests);
     }
     catch (Exception ex)
     {
         frameworkLogger.Log(LogSeverity.Error, "Gallio failed to load tests", ex);
     }
 }
        public void DiscoverTests(IEnumerable<string> sources, IMessageLogger logger, ITestCaseDiscoverySink discoverySink)
        {
            var frameworkLogger = new TestFrameworkLogger(logger);

            try
            {
                frameworkLogger.Log(LogSeverity.Info, "Gallio starting up");

                var tests = Explore(sources, frameworkLogger);

                if (tests == null)
                    return;

                frameworkLogger.Log(LogSeverity.Info, "Found " + tests.Count());
                PublishTests(tests, discoverySink);
            }
            catch (Exception ex)
            {
                frameworkLogger.Log(LogSeverity.Error, String.Format("Gallio: Exception discovering tests from {0}", ex));
            }
        }
        public void DiscoverTests(IEnumerable <string> sources, IMessageLogger logger, ITestCaseDiscoverySink discoverySink)
        {
            var frameworkLogger = new TestFrameworkLogger(logger);

            try
            {
                frameworkLogger.Log(LogSeverity.Info, "Gallio starting up");

                var tests = Explore(sources, frameworkLogger);

                if (tests == null)
                {
                    return;
                }

                frameworkLogger.Log(LogSeverity.Info, "Found " + tests.Count());
                PublishTests(tests, discoverySink);
            }
            catch (Exception ex)
            {
                frameworkLogger.Log(LogSeverity.Error, String.Format("Gallio: Exception discovering tests from {0}", ex));
            }
        }