示例#1
0
        public TestModel(ITestEngine testEngine, string applicationPrefix = null)
        {
            TestEngine       = testEngine;
            _settingsService = new SettingsService(true);
            _events          = new TestEventDispatcher(this);
            _assemblyWatcher = new AssemblyWatcher();

            _settingsService.LoadSettings();
            Settings    = new UserSettings(_settingsService, applicationPrefix);
            RecentFiles = new RecentFiles(_settingsService, applicationPrefix);

            Services = new TestServices(testEngine);

            foreach (var node in Services.ExtensionService.GetExtensionNodes(PROJECT_LOADER_EXTENSION_PATH))
            {
                if (node.TypeName == NUNIT_PROJECT_LOADER)
                {
                    NUnitProjectSupport = true;
                }
                else if (node.TypeName == VISUAL_STUDIO_PROJECT_LOADER)
                {
                    VisualStudioSupport = true;
                }
            }
        }
示例#2
0
        public TestModel(ITestEngine testEngine)
        {
            _testEngine = testEngine;
            Services    = new TestServices(testEngine);

            foreach (var node in Services.ExtensionService.GetExtensionNodes(PROJECT_LOADER_EXTENSION_PATH))
            {
                if (node.TypeName == NUNIT_PROJECT_LOADER)
                {
                    NUnitProjectSupport = true;
                }
                else if (node.TypeName == VISUAL_STUDIO_PROJECT_LOADER)
                {
                    VisualStudioSupport = true;
                }
            }

            _events = new TestEventDispatcher(this);
        }