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; } }
private void RecursiveProcessTask(FacadeTask task) { ProcessTask(task); foreach (FacadeTask child in task.Children) { RecursiveProcessTask(child); } }
public FacadeTaskResult Run(FacadeTask facadeTask) { RecursiveProcessTask(facadeTask); return(RunTests()); }