private void AppendErrorToText(ErrorEntity error) { txtTestRunErrors.AppendText(String.Format("Error: {0}\n", error.Message)); if (error.HasInnerErrors) { txtTestRunErrors.AppendText("\nInner Errors:\n"); foreach (var innerError in error.EntitiesOfType <ErrorEntity>()) { AppendErrorToText(innerError); } txtTestRunErrors.AppendText(">>> End Inner Errors\n"); } }