public void MergeWith_Null() { TableStyle ts = GetTableStyle(); ts.MergeWith(null); CheckTableStyle(ts); }
public void MergeWith_Self() { TableStyle ts = GetTableStyle(); ts.MergeWith(ts); CheckTableStyle(ts); }
private void Page_Load(object sender, System.EventArgs e) { //Put user code to initialize the page here base.GHTTestBegin((HtmlForm)this.FindControl("Form1")); System.Web.UI.WebControls.TableStyle myStyle = new TableStyle(); myStyle = (TableStyle)Table1.ControlStyle; myStyle.MergeWith(Table2.ControlStyle); Table1.ApplyStyle(myStyle); base.GHTTestEnd(); }
public void MergeWith() { TableStyle ts = new TableStyle(); ts.BackImageUrl = imageUrl + "1"; ts.CellPadding = 2; ts.CellSpacing = 3; ts.GridLines = GridLines.Horizontal; ts.HorizontalAlign = HorizontalAlign.Left; ts.MergeWith(GetTableStyle()); Assert.AreEqual(imageUrl + "1", ts.BackImageUrl, "BackImageUrl"); Assert.AreEqual(2, ts.CellPadding, "CellPadding"); Assert.AreEqual(3, ts.CellSpacing, "CellSpacing"); Assert.AreEqual(GridLines.Horizontal, ts.GridLines, "GridLines"); Assert.AreEqual(HorizontalAlign.Left, ts.HorizontalAlign, "HorizontalAlign"); }