/// <summary>
        /// Fires the test method starting event.
        /// </summary>
        /// <param name="e">The event data.</param>
        protected internal virtual void OnTestMethodStarting(TestMethodStartingEventArgs e)
        {
            var handler = TestMethodStarting;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Process the start of a test method.
        /// </summary>
        /// <param name="sender">The source object.</param>
        /// <param name="e">The event data.</param>
        private void OnTestMethodStarting(object sender, TestMethodStartingEventArgs e)
        {
            TestClassData tac = GetClassModel(e.TestClass);
            TestMethodData tmd = GetMethodModel(e.TestMethod, tac);
            if (!tac.IsExpanded)
            {
                tac.IsExpanded = true;
            }
            tmd.IsRunning = true;

            _d.CurrentTestMethod = e.TestMethod.Name;
        }
 /// <summary>
 /// Calls the test method starting event.
 /// </summary>
 /// <param name="e">The event data.</param>
 public void SendTestMethodStarting(TestMethodStartingEventArgs e)
 {
   _harness.OnTestMethodStarting(e);
 }
Esempio n. 4
0
 /// <summary>
 /// Fires the test method starting event.
 /// </summary>
 /// <param name="e">The event data.</param>
 protected internal virtual void OnTestMethodStarting(TestMethodStartingEventArgs e)
 {
   var handler = TestMethodStarting;
   if (handler != null)
   {
     handler(this, e);
   }
 }
 /// <summary>
 /// Calls the test method starting event.
 /// </summary>
 /// <param name="e">The event data.</param>
 public void SendTestMethodStarting(TestMethodStartingEventArgs e)
 {
     _harness.OnTestMethodStarting(e);
 }