/// <summary>Merges the items in this error list with the items from the other error list.</summary> /// <param name="other">The other error list to merge into this list.</param> public virtual void MergeWith(ErrorList other) { Assumption.NotNull(other); foreach (var item in other.Items) { Add(item); } }
internal static AssumptionFailure Create(string message, ErrorList errorList) { var exception = new AssumptionFailure(message); exception.ErrorList = errorList; return exception; }
/// <summary>Appends the messages from the given list to this list.</summary> /// <param name="list">The list of messages to append.</param> public void Append(ErrorList list) { foreach (var item in list.Items) { Add(item); } }