| 12345678910111213141516171819202122232425 |
- using System.Collections.Generic;
- using Renci.SshNet.Common;
- namespace Renci.SshNet.Tests.Common
- {
- internal static class Extensions
- {
- public static string AsString(this IList<ExceptionEventArgs> exceptionEvents)
- {
- if (exceptionEvents.Count == 0)
- {
- return string.Empty;
- }
- var reportedExceptions = string.Empty;
- foreach (var exceptionEvent in exceptionEvents)
- {
- reportedExceptions += exceptionEvent.Exception.ToString();
- }
- return reportedExceptions;
- }
- }
- }
|