/// <summary>
 /// Handles the Progress event of the testManager control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="Wax.TestProgressEventArgs"/> instance containing the event data.</param>
 private void TestManagerProgress(object sender, TestProgressEventArgs e)
 {
     if (this.Progress != null)
     {
         this.Progress(sender, e);
     }
 }
        /// <summary>
        /// Handles the Progress event of the testRunner control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="Wax.TestProgressEventArgs"/> instance containing the event data.</param>
        private void TestRunnerProgress(object sender, TestProgressEventArgs e)
        {
            if (this.InvokeRequired)
            {
                this.Invoke(new EventHandler<TestProgressEventArgs>(TestRunnerProgress), new object[] { sender, e });
                return;
            }

            this.progressBar.Value = e.PercentComplete;
        }
        /// <summary>
        /// Handles the Progress event of the testRunner control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="TestProgressEventArgs"/> instance containing the event data.</param>
        private void TestRunnerProgress(object sender, TestProgressEventArgs e)
        {
            this.progressHandlerCalledCount = this.progressHandlerCalledCount + 1;

            int total = e.TotalNumberOfSteps;
            int percent = e.PercentComplete;
            int steps = e.NumberOfCompletedSteps;

            Assert.AreEqual((int)((steps / (float)total) * 100), e.PercentComplete);
            Assert.AreEqual(progressHandlerCalledCount, steps);
        }