Exemple #1
0
        public static void TraverseTestTree(TestScriptObject testScriptObject, TraverseTestTreeDelegate traverseTestTreeDelegate, object tag)
        {
            m_continue = traverseTestTreeDelegate(testScriptObject, tag);

            if (m_continue)
            {
                if (testScriptObject is TestScriptObjectContainer)
                {
                    var container = testScriptObject as TestScriptObjectContainer;

                    foreach (TestScriptObject testscript in container.TestScriptObjects)
                    {
                        TraverseTestTree(testscript, traverseTestTreeDelegate, tag);

                        if (!m_continue)
                        {
                            break;
                        }
                    }
                }
            }
        }
Exemple #2
0
 public static void TraverseTestTree(TestScriptObject testScriptObject, TraverseTestTreeDelegate traverseTestTreeDelegate)
 {
     TraverseTestTree(testScriptObject, traverseTestTreeDelegate, null);
 }