public void OnFatalError(ExceptionResult exception)
 {
     if (this.currentRunStats != null)
     {
         this.currentRunStats.Stop();
         this.currentRunStats = null;
     }
     this.SendErrorMessage(Strings.RUNERROR);
 }
        public void OnFatalError(ExceptionResult exception)
        {
            if (this.currentRunStats != null)
            {
                this.currentRunStats.Stop();
                this.currentRunStats = null;
            }

            this.frameworkHandle.SendMessage(TestMessageLevel.Error, Strings.RUNERROR + Environment.NewLine + exception.ToString());
        }
Пример #3
0
    public ExceptionResult(Exception exception)
    {
      FullTypeName = exception.GetType().FullName;
      TypeName = exception.GetType().Name;
      Message = exception.Message;
      StackTrace = FilterStackTrace( exception.StackTrace);

      if (exception.InnerException != null)
      {
        InnerExceptionResult = new ExceptionResult(exception.InnerException);
      }

      _toString = exception.ToString();
    }
Пример #4
0
        public ExceptionResult(Exception exception)
        {
            FullTypeName = exception.GetType().FullName;
            TypeName     = exception.GetType().Name;
            Message      = exception.Message;
            StackTrace   = FilterStackTrace(exception.StackTrace);

            if (exception.InnerException != null)
            {
                InnerExceptionResult = new ExceptionResult(exception.InnerException);
            }

            _toString = exception.ToString();
        }
Пример #5
0
        public static XElement ToXml(this ExceptionResult exceptionResult)
        {
            if (exceptionResult == null)
            {
                return(new XElement("exceptionresult"));
            }

            return(new XElement(
                       "exceptionresult",
                       new XElement("fulltypename", exceptionResult.FullTypeName),
                       new XElement("typename", exceptionResult.TypeName),
                       new XElement("message", exceptionResult.Message),
                       new XElement("stacktrace", exceptionResult.StackTrace),
                       new XElement("innerexceptionresult", exceptionResult.InnerExceptionResult != null ? ToXml(exceptionResult.InnerExceptionResult) : null)));
        }
Пример #6
0
        ExceptionResult(Exception exception, bool outermost)
        {
            if (outermost && exception is TargetInvocationException)
            {
                exception = exception.InnerException;
            }

            FullTypeName = exception.GetType().FullName;
            TypeName     = exception.GetType().Name;
            Message      = exception.Message;
            StackTrace   = FilterStackTrace(exception.StackTrace);

            if (exception.InnerException != null)
            {
                InnerExceptionResult = new ExceptionResult(exception.InnerException, false);
            }
        }
Пример #7
0
        ExceptionResult(Exception exception, bool outermost)
        {
#if CLEAN_EXCEPTION_STACK_TRACE
            if (outermost && exception is TargetInvocationException)
            {
                exception = exception.InnerException;
            }
#endif

            FullTypeName = exception.GetType().FullName;
            TypeName     = exception.GetType().Name;
            Message      = exception.Message;
            StackTrace   = FilterStackTrace(exception.StackTrace);

            if (exception.InnerException != null)
            {
                InnerExceptionResult = new ExceptionResult(exception.InnerException, false);
            }
        }
Пример #8
0
    ExceptionResult(Exception exception, bool outermost)
    {
#if CLEAN_EXCEPTION_STACK_TRACE
      if (outermost && exception is TargetInvocationException)
      {
        exception = exception.InnerException;
      }
#endif

      FullTypeName = exception.GetType().FullName;
      TypeName = exception.GetType().Name;
      Message = exception.Message;
      StackTrace = FilterStackTrace(exception.StackTrace);

      if (exception.InnerException != null)
      {
        InnerExceptionResult = new ExceptionResult(exception.InnerException, false);
      }
    }
Пример #9
0
 private Result(Exception exception)
 {
     Status    = Status.Failing;
     Exception = new ExceptionResult(exception);
 }
 public void OnFatalError(ExceptionResult exception)
 {
     runListener.OnFatalError(exception);
 }
 public void OnFatalError(ExceptionResult exception)
 {
     _messageProvider.TestFailed("Fatal error", exception.Message, exception.StackTrace, exception.FullTypeName);
 }
 public void OnFatalError(ExceptionResult exception)
 {
     _failedSpecificationCount++;
     _task.Log(Level.Error, String.Format("Fatal error: {0}", exception));
 }
 public void OnFatalError(ExceptionResult exception)
 {
 }