예제 #1
0
        public XmlExceptionInfo(ExceptionInfo exceptionInfo)
        {
            this.Unexpected = exceptionInfo.Unexpected;
            this.KnownBug = exceptionInfo.KnowBug;
            this.IncorrectConfiguration = exceptionInfo.IncorrectConfiguration;

            this.Message = exceptionInfo.Exception.Message;
            this.StackTrace = exceptionInfo.FullStackTrace;
        }
예제 #2
0
 /// --------------------------------------------------------------------
 /// <summary></summary>
 /// --------------------------------------------------------------------
 virtual protected void LogException(ExceptionInfo exceptionInfo)
 {
     SetTestResult(new TestResultInfo(TestResultInfo.TestResults.UnexpectedError));
     LogComment(string.Format("######: \"{0}\"\n Exception Type: {1}\n StackTrace : {2}",
         exceptionInfo.Exception.Message,
         exceptionInfo.Exception.GetType().ToString(),
         exceptionInfo.FullStackTrace), 
         ConsoleColor.Red);
     //_testResultInfo.Result = TestResultInfo.TestResults.UnexpectedError;
 }