private void TestStep_OnExecutionComplete(TestStep testStep, TestStepResult testStepResult)
 {
     if (this.InvokeRequired)
     {
         OnTestScriptObjectExecutionCompleteDelegate d = new OnTestScriptObjectExecutionCompleteDelegate(onTestScriptObjectExecutionComplete);
         BeginInvoke(d, new object[] { testStep, testStepResult });
     }
     else
     {
         onTestScriptObjectExecutionComplete(testStep, testStepResult);
     }
 }
        private void TestCase_OnExecutionComplete(TestCase testCase, TestCaseResult testCaseResult)
        {
            Debug.WriteLine("TestCase_OnExecutionComplete");

            if (this.InvokeRequired)
            {
                OnTestScriptObjectExecutionCompleteDelegate d = new OnTestScriptObjectExecutionCompleteDelegate(onTestScriptObjectExecutionComplete);
                BeginInvoke(d, new object[] { testCase, testCaseResult });
            }
            else
            {
                onTestScriptObjectExecutionComplete(testCase, testCaseResult);
            }
        }