Пример #1
0
        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);
            }
        }
Пример #2
0
        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);
        }