/// <summary> /// Moves the run and check actions from the source ActionCollection to the destination ActionCollection /// </summary> private static void MoveActions(ActionCollection source, ActionCollection destination) { if ((source == null) || (destination == null)) return; for (int i = 0; i < source.Count; ++i) { if ((source[i] is ActionRun) || (source[i] is ActionCheck)) { destination.Add(source[i]); source.RemoveAt(i); --i; } } }