public IEnumerable <T> ForEachTest01 <T>(IEnumerable <T> source, Action <T, int> action)
        {
            IEnumerable <T> result = EnumerableExtension.ForEach <T>(source, action);

            return(result);
            // TODO: add assertions to method EnumerableExtensionTest.ForEachTest01(IEnumerable`1<!!0>, Action`2<!!0,Int32>)
        }
        /// <summary>
        /// Retorna mensagem de erro formatado
        /// </summary>
        public string GetFormatedMessage()
        {
            var formatedMessage = string.Empty;

            EnumerableExtension.ForEach(this.PropertyErrors, error => formatedMessage += error.Error + Environment.NewLine);
            return(this.RemoveLastNewLine(formatedMessage));
        }
        public string GetFormatedMessageForProperty(string propertyName)
        {
            var formatedMessage = string.Empty;

            EnumerableExtension.ForEach(this.PropertyErrors, error =>
            {
                if (error.Property.Equals(propertyName))
                {
                    formatedMessage += error.Error + Environment.NewLine;
                }
            });

            return(this.RemoveLastNewLine(formatedMessage));
        }