コード例 #1
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);
            }
        }
コード例 #2
0
 /// <summary>
 /// Calls the test method starting event.
 /// </summary>
 /// <param name="e">The event data.</param>
 public void SendTestMethodStarting(TestMethodStartingEventArgs e)
 {
     _harness.OnTestMethodStarting(e);
 }
コード例 #3
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);
     }
 }
コード例 #4
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;
        }
コード例 #5
0
 private void OnTestMethodStarting(object sender, TestMethodStartingEventArgs testMethodStartingEventArgs)
 {
     if (_remoteTestingApplicationService != null)
     {
         _remoteTestingApplicationService.OnTestMethodStarting(sender, testMethodStartingEventArgs);
     }
 }
コード例 #6
0
        public void OnTestMethodStarting(object sender, TestMethodStartingEventArgs e)
        {
            var result = new TestMethodDetailedInformation()
                             {
                                 Class = _silverlightUnitTestAbstractionsFactory.Convert(e.TestClass),
                                 Method = _silverlightUnitTestAbstractionsFactory.Convert(e.TestMethod)
                             };

            var serializedResult = _serializationService.Serialize(result);

            InvokeExternalMethod("TestMethodStarting", serializedResult);
        }