private void WriteOutFullExceptionHelper(IAssertionHelper helper, Exception ex)
{
if (ex is AssertionException)
{
helper.Log.WriteLine(ex.Message);
helper.Log.WriteLine(ex.StackTrace);
}
else if (ex is IgnoreException)
{
helper.Log.Write(ex.Message);
}
else
{
helper.Log.Write("{0}: ", ex.GetType().Name);
helper.Log.WriteLine(ex.Message);
helper.Log.WriteLine(ex.StackTrace);
if (ex.InnerException != null)
WriteOutFullExceptionHelper(helper, ex);
}
}