Esempio n. 1
0
        public string Report()
        {
            var report = new StringBuilder();

            report.AppendLine($"{Filename}");

            if (HasErrors)
            {
                Errors.ForEach(e => report.AppendLine($"Error: {e}"));
            }

            if (HasWarnings)
            {
                Warnings.ForEach(w => report.AppendLine($"Warning: {w}"));
            }

            report.AppendLine(SuccessDescription());

            return(report.ToString());
        }