internal virtual void OnRaiseTestSuiteFailed(TestSuiteFailedEventArgs e) { EventHandler <TestSuiteFailedEventArgs> handler = TestSuiteFailed; // Event will be null if there are no subscribers if (handler != null) { handler(this, e); } }
private void TestSuiteFailed(object sender, TestSuiteFailedEventArgs 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); }