Example #1
0
        private void OnCompleteTestCase(object src, TestEventArgs args)
        {
            txtResults.Text += ": " + ((args.TestStatus == TestEventArgs.Status.Succeed) ? "Succeeded" : args.TestCase.ErrorSolution);

            if (progressBar1.Maximum != args.TotalRuns)
                progressBar1.Maximum = args.TotalRuns;

            progressBar1.Value = args.CurrentRun;
        }
Example #2
0
        private void OnStartTestCase(object src, TestEventArgs args)
        {
            if (txtResults.Text.Length > 0)
                txtResults.Text += "\r\n\r\n";

            txtResults.Text += args.TestCase.Description;

            if (progressBar1.Maximum != args.TotalRuns)
                progressBar1.Maximum = args.TotalRuns;

            progressBar1.Value = args.CurrentRun;
        }