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; }
/// -------------------------------------------------------------------- /// <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; }