示例#1
0
        public RunTestsEngine(string containerFilePath)
        {
            _containerFilePath    = containerFilePath;
            _testsContainerEntity = LoadTestContainer(_containerFilePath);

            // Need to setup any test assemblies
            foreach (var testAssy in _testsContainerEntity.DescendantsAndSelf <TestAssemblyEntity>())
            {
                Model.Instance.Session.RegisterTestAssembly(testAssy);
            }

            _taskController = new AppTaskController(Model.Instance, Model.Instance.Session.BaseTasksFolderPath)
            {
                MaxConcurrentTasks = 1,
            };
            _taskController.TaskStarted   += new AppTaskEventHandler(TaskController_TaskStarted);
            _taskController.TaskCompleted += new AppTaskEventHandler(TaskController_TaskCompleted);

            _normalConsoleColor = Console.ForegroundColor;
        }