public static void AddDiv4OkMessage(this ControlCollection controls, TestRule rule, TestSent sent)
 {
     controls.AddDiv(rule.ToString() + '.' + sent.ToString() + " - OK");
 }
        public static void AddDiv4ExceptionMessage(this ControlCollection controls, Exception ex, TestRule rule, TestSent sent)
        {
            var div = new HtmlGenericControl("div")
            {
                InnerHtml = rule.ToString() + '.' + sent.ToString() + " - " + (ex is TestException ? ex.Message : ex.ToString().GetNoLongest(250).ToHtmlBold())
            };

            div.Style[HtmlTextWriterStyle.Color] = "red";

            controls.Add(div);
        }