public static IEnumerable <RemoteTaskPacket> GetAllTasks(this IUnitTestRun run) { return(run.GetTasks().SelectMany(t => t.GetAllTasksRecursive())); }
public static IList <RemoteTaskPacket> GetRootTasks(this IUnitTestRun run) { return((run.GetTasks() as IList <RemoteTaskPacket>) ?? new List <RemoteTaskPacket>()); }