public static void AddDiv4OkMessage(this ControlCollection controls, TestRule rule, TestSent sent)
 {
     controls.AddDiv(rule.ToString() + '.' + sent.ToString() + " - OK");
 }
 public static void AddDiv4FinalMessage(this ControlCollection controls, TestXmlFile testXmlFile, int errorCount, Stopwatch sw)
 {
     controls.AddDiv("<br/>&nbsp;&nbsp;&nbsp;&nbsp;(Всего: " + testXmlFile.TestRules.Sum(_ => _.TestSents.Count) + " штук, &nbsp;" +
                     ((errorCount == 0) ? "Ошибок НЕТ" : "Ошибок: " + errorCount + " штук") + ", &nbsp;Время: " +
                     sw.Elapsed);
 }
 public static void AddDiv4FinalMessage(this ControlCollection controls, TestXmlFile testXmlFile, int errorCount)
 {
     controls.AddDiv("<br/>&nbsp;&nbsp;&nbsp;&nbsp;(Всего: " + testXmlFile.TestRules.Sum(_ => _.TestSents.Count) + " штук, &nbsp;" + ((errorCount == 0) ? "Ошибок НЕТ)" : "Ошибок: " + errorCount + " штук)"));
 }