Example #1
0
            private bool ContainsNonTopLevelTaskAttributes(TaskList tasks)
            {
                for (int depth = 2; depth < 10; depth++)
                {
                    if (HtmlReportUtils.ContentContainsTaskAttributePlaceholders(Text, tasks, depth))
                    {
                        return(true);
                    }
                }

                return(HtmlReportUtils.ContentContainsTaskAttributePlaceholders(Text, tasks, 0));                // leaf tasks
            }
Example #2
0
 public bool ContainsTaskAttributes(TaskList tasks)
 {
     // Must only contain '$(title)' or '$(title.1)'
     return(HtmlReportUtils.ContentContainsTaskAttributePlaceholders(Text, tasks) &&
            !ContainsNonTopLevelTaskAttributes(tasks));
 }