예제 #1
0
        public XUnitTestsRunContext(
            XUnitResultsParser parser,
            IProcesses processes,
            CommonServices svc,
            //----------
            string xUnitPath,
            string assemblyPath,
            TestsSelector testsSelector)
        {
            _parser                  = parser;
            _processes               = processes;
            _svc                     = svc;
            _assemblyPath            = assemblyPath;
            _testsSelector           = testsSelector;
            _nUnitConsolePath        = xUnitPath;// @"C:\PLIKI\DOWNLOAD\xunit-2.0-beta-3\src\xunit.console\bin\Debug\xunit.console.exe";
            _cancellationTokenSource = new CancellationTokenSource();

            // var testsSelector = new TestsSelector();
            // _selectedTests = testsSelector.GetIncludedTests(loadContext.Namespaces);
            //_log.Debug("Created tests to run: " + _selectedTests.TestsDescription);
        }
        public XUnitTestsRunContext(
            XUnitResultsParser parser,
            IProcesses processes,
            CommonServices svc,
            //----------
            string xUnitPath,
            string assemblyPath,
            TestsSelector testsSelector)
        {
            _parser = parser;
            _processes = processes;
            _svc = svc;
            _assemblyPath = assemblyPath;
            _testsSelector = testsSelector;
            _nUnitConsolePath = xUnitPath;// @"C:\PLIKI\DOWNLOAD\xunit-2.0-beta-3\src\xunit.console\bin\Debug\xunit.console.exe";
            _cancellationTokenSource = new CancellationTokenSource();

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