internal virtual void OnRaiseTestSuiteCompleted(TestSuiteCompletedEventArgs e) { EventHandler <TestSuiteCompletedEventArgs> handler = TestSuiteCompleted; // Event will be null if there are no subscribers if (handler != null) { handler(this, e); } }
private void TestSuiteCompleted(object sender, TestSuiteCompletedEventArgs e) { if (e == null || e.TestExecResult == null) { return; } dataGridView1.Rows.Add( "Test Suite", e.TestExecResult.TestExecutionTime, e.TestExecResult.PackageName, e.TestExecResult.TaskName, e.TestExecResult.TestName, e.TestExecResult.TestResultMsg, e.TestExecResult.TestPassed); }