示例#1
0
 private void OnResult(object Sender, TestResultEventArgs e)
 {
     if (this.TestResult != null)
     {
         this.TestResult(this, e);
     }
 }
示例#2
0
        private void ShowTestResult(TestResultEventArgs e)
        {
            ListViewItem item = new ListViewItem(e.TestName.Trim());

            item.SubItems.Add(e.TestResult.ToString());
            item.SubItems.Add(e.TestTime.ToString());
            item.SubItems.Add(e.TestFailed.ToString());

            this.lstTestResults.Items.Add(item);
            this.lstTestResults.EnsureVisible(lstTestResults.Items.Count - 1);
        }
示例#3
0
 private void OnTestResult(object Sender, TestResultEventArgs e)
 {
     this.lstTestResults.Invoke(new ShowTestResultHandler(this.ShowTestResult), new object[] { e });
 }