public void Stack_CreateFromStackTrace()
{
var dotNetStack = new StackTrace();
Stack stack = new Stack(dotNetStack);
// The .NET StackTrace.ToString() override must preserve a trailing NewLine
// for compatibility reasons. We do not retain this behavior in ToString()
// but provide a facility for adding the trailing NewLine
Assert.AreEqual(dotNetStack.ToString(), stack.ToString(StackFormat.TrailingNewLine));
}