/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current Entity Model. /// </returns> public override int GetHashCode() { int h0 = Id?.GetHashCode() ?? base.GetHashCode(); int h1 = HtmlClasses?.GetHashCode() ?? 0; int h2 = MvcData?.GetHashCode() ?? 0; return(Hash.CombineHashCodes(h0, h1, h2)); }
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(); }