public void Start(string description, DateTime runningTime) { _document = new HtmlDocument(); _document.AddStyle(HtmlClasses.CSS()); _document.Add("h1").Text(description); _document.AddJavaScript(HtmlClasses.JQuery()); _document.AddJavaScript(HtmlClasses.SummaryFilter()); _document.Add("div").Text("Executed at {0}".ToFormat(runningTime)).AddClass(HtmlClasses.CAPTION); _document.Add("hr"); // _document and _table are HtmlTag objects _table = _document.Add("table"); _table.Add("thead/tr", x => { x.Add("th").Text("Test"); x.Add("th").Text("Lifecycle"); x.Add("th").Text("Result"); }); _tbody = _table.Add("tbody"); }
public void can_retrieve_style() { HtmlClasses.CSS().ShouldNotBeEmpty(); }