public void HtmlTableCellControlCollectionAddAt_Null() { TestHtmlTableRow t = new TestHtmlTableRow(); ControlCollection c = t.GetCollection(); c.AddAt(0, null); }
public void HtmlTableCellControlCollectionAddAt_WrongType() { TestHtmlTableRow t = new TestHtmlTableRow(); ControlCollection c = t.GetCollection(); c.AddAt(0, new HtmlTable()); }
public void HtmlTableCellControlCollectionAddAt() { TestHtmlTableRow t = new TestHtmlTableRow(); ControlCollection c = t.GetCollection(); c.AddAt(0, new HtmlTableCell()); c.AddAt(0, new InheritedHtmlTableCell()); Assert.AreEqual(2, c.Count, "Cells"); }
public void Render() { TestHtmlTableRow r = new TestHtmlTableRow(); r.Align = "*1*"; r.BgColor = "*2*"; r.BorderColor = "*3*"; r.Height = "*4*"; r.VAlign = "*5*"; Assert.AreEqual(AdjustLineEndings("<tr align=\"*1*\" bgcolor=\"*2*\" bordercolor=\"*3*\" height=\"*4*\" valign=\"*5*\">\r\n</tr>\r\n"), r.Render()); }
public void HtmlTableCellControlCollectionAddAt () { TestHtmlTableRow t = new TestHtmlTableRow (); ControlCollection c = t.GetCollection (); c.AddAt (0, new HtmlTableCell ()); c.AddAt (0, new InheritedHtmlTableCell ()); Assert.AreEqual (2, c.Count, "Cells"); }
public void HtmlTableCellControlCollectionAddAt_WrongType () { TestHtmlTableRow t = new TestHtmlTableRow (); ControlCollection c = t.GetCollection (); c.AddAt (0, new HtmlTable ()); }
public void HtmlTableCellControlCollectionAddAt_Null () { TestHtmlTableRow t = new TestHtmlTableRow (); ControlCollection c = t.GetCollection (); c.AddAt (0, null); }
public void Render () { TestHtmlTableRow r = new TestHtmlTableRow (); r.Align = "*1*"; r.BgColor = "*2*"; r.BorderColor = "*3*"; r.Height = "*4*"; r.VAlign = "*5*"; Assert.AreEqual (AdjustLineEndings ("<tr align=\"*1*\" bgcolor=\"*2*\" bordercolor=\"*3*\" height=\"*4*\" valign=\"*5*\">\r\n</tr>\r\n"), r.Render ()); }