public void InterException() { var exception = GenerateException(() => GenerateInnerException(3)); var parsedException = new ParsedException(exception.ToString()); Assert.AreEqual(14, parsedException.StackFrames.Where(x => x.IsWellParsed).Count()); }
public void OptimizedCode() { var exception = GenerateException(() => File.Create(@"file://kkk\..\..\..\this is invalid path")); var parsedException = new ParsedException(exception.ToString()); Assert.AreEqual(2, parsedException.StackFrames.Where(x => x.IsWellParsed).Count()); }
public void SimpleException() { var exception = GenerateException(() => Loop(3)); var stackTrace = new StackTrace(exception, fNeedFileInfo: true); var parsedException = new ParsedException(exception.ToString()); Assert.AreEqual(stackTrace.FrameCount, parsedException.StackFrames.Where(x => x.IsWellParsed).Count()); Assert.AreEqual(s_exceptionHeader, parsedException.Header); }