private IntegrationTestRendererBase[] ParseTestList(List <TestComponent> testList, List <TestResult> results)
        {
            var tempList = new List <IntegrationTestRendererBase>();

            foreach (var testObject in testList)
            {
                if (!testObject.IsTestGroup())
                {
                    var result = new TestResult(testObject);
                    if (results != null)
                    {
                        results.Add(result);
                    }
                    tempList.Add(new IntegrationTestLine(testObject.gameObject, result));
                    continue;
                }
                var group    = new IntegrationTestGroupLine(testObject.gameObject);
                var children = testObject.gameObject.GetComponentsInChildren(typeof(TestComponent), true).Cast <TestComponent>().ToList();
                children = children.Where(c => c.gameObject.transform.parent == testObject.gameObject.transform).ToList();
                group.AddChildren(ParseTestList(children, results));
                tempList.Add(group);
            }
            tempList.Sort();
            return(tempList.ToArray());
        }
 private IntegrationTestRendererBase[] ParseTestList(List<TestComponent> testList, List<TestResult> results)
 {
     var tempList = new List<IntegrationTestRendererBase>();
     foreach (var testObject in testList)
     {
         if (!testObject.IsTestGroup())
         {
             var result = new TestResult(testObject);
             if (results != null)
                 results.Add(result);
             tempList.Add(new IntegrationTestLine(testObject.gameObject, result));
             continue;
         }
         var group = new IntegrationTestGroupLine(testObject.gameObject);
         var children = testObject.gameObject.GetComponentsInChildren(typeof(TestComponent), true).Cast<TestComponent>().ToList();
         children = children.Where(c => c.gameObject.transform.parent == testObject.gameObject.transform).ToList();
         group.AddChildren(ParseTestList(children, results));
         tempList.Add(group);
     }
     tempList.Sort();
     return tempList.ToArray();
 }