public T[] TransformValue(T[] source) { var result = new List <T>(); exceptions = new List <Exception>(); foreach (var item in source) { if (assertion.TryAssert(item, out Exception exception)) { result.Add(item); } exceptions.Add(exception); } return(result.ToArray()); }