/// <summary>
        /// Notifies observers that a test method has been completed. Also
        /// clears the test panel's visual tree.
        /// </summary>
        /// <param name="e">The event data.</param>
        protected internal virtual void OnTestMethodCompleted(TestMethodCompletedEventArgs e)
        {
            var handler = TestMethodCompleted;

            if (handler != null)
            {
                handler(this, e);
            }

            // Clear the test panel
            if (TestPanelManager != null)
            {
                TestPanelManager.ClearUsedChildren();
            }
        }
示例#2
0
        /// <summary>
        /// Process the completion of test methods.
        /// </summary>
        /// <param name="sender">The source object.</param>
        /// <param name="e">The event data.</param>
        private void OnTestMethodCompleted(object sender, TestMethodCompletedEventArgs e)
        {
            ScenarioResult result = e.Result;
            if (result == null)
            {
                throw new InvalidOperationException("The result was not present.");
            }

            ProcessResult(result);
        }
 /// <summary>
 /// Calls the test method completed event.
 /// </summary>
 /// <param name="e">The event data.</param>
 public void SendTestMethodCompleted(TestMethodCompletedEventArgs e)
 {
   _harness.OnTestMethodCompleted(e);
 }
示例#4
0
    /// <summary>
    /// Notifies observers that a test method has been completed. Also
    /// clears the test panel's visual tree.
    /// </summary>
    /// <param name="e">The event data.</param>
    protected internal virtual void OnTestMethodCompleted(TestMethodCompletedEventArgs e)
    {
      var handler = TestMethodCompleted;
      if (handler != null)
      {
        handler(this, e);
      }

      // Clear the test panel
      if (TestPanelManager != null)
      {
        TestPanelManager.ClearUsedChildren();
      }
    }
 /// <summary>
 /// Calls the test method completed event.
 /// </summary>
 /// <param name="e">The event data.</param>
 public void SendTestMethodCompleted(TestMethodCompletedEventArgs e)
 {
     _harness.OnTestMethodCompleted(e);
 }