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