Much better approach is to create a Gallio.Common.Diagnostics.StackTraceData object and write it to the log. It'll get all of that nifty highlighting, links and stuff.
Jeff. On Tue, May 11, 2010 at 6:02 AM, Mark Kharitonov <[email protected]>wrote: > Hi. > I want to track down some intermittent unit test failure. For that I > would like to print the stack trace of the current location. I am > using the standard .NET type StackTrace to create the stack trace and > then output it using > TestContext.CurrentContext.LogWriter.Warnings.WriteLine method. > > Am I doing it right or is there a better approach? Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "MbUnit.User" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<mbunituser%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/mbunituser?hl=en. > > -- You received this message because you are subscribed to the Google Groups "MbUnit.User" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/mbunituser?hl=en.
