private static IEnumerable <IGroup> GetExpectedGroups(ReadOnlyList <TestGroup> root, int slot) { var expectedGroups = new List <IGroup>(); var group = root.Flatten().ElementAt(slot); expectedGroups.Add(group); return(expectedGroups); }