Esempio n. 1
0
        private void ProcessTask(FacadeTask task)
        {
            var itemTask = task as GallioTestItemTask;

            if (itemTask != null)
            {
                testTasks[itemTask.TestId] = itemTask;
                return;
            }

            var assemblyTask = task as GallioTestAssemblyTask;

            if (assemblyTask != null)
            {
                assemblyLocations.Add(assemblyTask.AssemblyLocation);
                return;
            }

            var explicitTask = task as GallioTestExplicitTask;

            if (explicitTask != null)
            {
                explicitTestIds.Add(explicitTask.TestId);
                return;
            }
        }
Esempio n. 2
0
        private void RecursiveProcessTask(FacadeTask task)
        {
            ProcessTask(task);

            foreach (FacadeTask child in task.Children)
            {
                RecursiveProcessTask(child);
            }
        }
Esempio n. 3
0
 public FacadeTaskResult Run(FacadeTask facadeTask)
 {
     RecursiveProcessTask(facadeTask);
     return(RunTests());
 }