PclUnit.Run.TestCycleExceptions.WriteOutFullExceptionHelper C# (CSharp) Méthode

WriteOutFullExceptionHelper() private méthode

private WriteOutFullExceptionHelper ( IAssertionHelper helper, Exception ex ) : void
helper IAssertionHelper
ex System.Exception
Résultat void
        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);
            }
        }