예제 #1
0
파일: Checker.cs 프로젝트: AndyNibbs/RTZ
        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());
        }