Пример #1
0
 public TestLoader(TestEventDispatcher eventDispatcher, IAssemblyWatcher assemblyWatcher)
 {
     this.events  = eventDispatcher;
     this.watcher = assemblyWatcher;
     this.factory = new DefaultTestRunnerFactory();
     AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(OnUnhandledException);
 }
Пример #2
0
        public TestLoader(TestEventDispatcher eventDispatcher)
        {
            this.events = eventDispatcher;

            ISettings settings = Services.UserSettings;

            this.ReloadOnRun         = settings.GetSetting("Options.TestLoader.ReloadOnRun", true);
            this.ReloadOnChange      = settings.GetSetting("Options.TestLoader.ReloadOnChange", true);
            this.RerunOnChange       = settings.GetSetting("Options.TestLoader.RerunOnChange", false);
            this.MultiDomain         = settings.GetSetting("Options.TestLoader.MultiDomain", false);
            this.MergeAssemblies     = settings.GetSetting("Options.TestLoader.MergeAssemblies", false);
            this.AutoNamespaceSuites = settings.GetSetting("Options.TestLoader.AutoNamespaceSuites", true);
            this.ShadowCopyFiles     = settings.GetSetting("Options.TestLoader.ShadowCopyFiles", true);

            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(OnUnhandledException);
        }
Пример #3
0
 public TestLoader(TestEventDispatcher eventDispatcher)
     : this(eventDispatcher, new AssemblyWatcher())
 {
 }
Пример #4
0
 public TestLoader(TestEventDispatcher eventDispatcher)
 {
     this.events = eventDispatcher;
     AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(OnUnhandledException);
 }