Пример #1
0
        public NUnitTestsRunContext(
            OptionsModel options,
            IProcesses processes,
            CommonServices svc,
            NUnitResultsParser parser,
            //----------
            string nUnitConsolePath,
            string assemblyPath,
            TestsSelector testsSelector)
        {
            _options                 = options;
            _parser                  = parser;
            _processes               = processes;
            _svc                     = svc;
            _assemblyPath            = assemblyPath;
            _nUnitConsolePath        = nUnitConsolePath;
            _testsSelector           = testsSelector;
            _cancellationTokenSource = new CancellationTokenSource();

            // var testsSelector = new TestsSelector();
            //  _selectedTests = testsSelector.GetIncludedTests(loadContext.Namespaces);
            //  _log.Debug("Created tests to run: " + _selectedTests.TestsDescription);
        }
        public NUnitTestsRunContext(
            OptionsModel options,
            IProcesses processes,
            CommonServices svc, 
            NUnitResultsParser parser,
            //----------
            string nUnitConsolePath,
            string assemblyPath,
            TestsSelector testsSelector)
        {
            _options = options;
            _parser = parser;
            _processes = processes;
            _svc = svc;
            _assemblyPath = assemblyPath;
            _nUnitConsolePath = nUnitConsolePath;
            _testsSelector = testsSelector;
            _cancellationTokenSource = new CancellationTokenSource();

           // var testsSelector = new TestsSelector();
          //  _selectedTests = testsSelector.GetIncludedTests(loadContext.Namespaces);
          //  _log.Debug("Created tests to run: " + _selectedTests.TestsDescription);
        }