public void HtmlTableRowControlCollectionAddAt_Null()
        {
            TestHtmlTable     t = new TestHtmlTable();
            ControlCollection c = t.GetCollection();

            c.AddAt(0, null);
        }
        public void Render_TableRow_Simple()
        {
            TestHtmlTable t = new TestHtmlTable();

            t.Rows.Add(new HtmlTableRow());
            Assert.AreEqual(RemoveWS("<table>\r\n\t<tr>\r\n\t</tr>\r\n</table>\r\n"), RemoveWS(t.Render()));
        }
        public void HtmlTableRowControlCollectionAddAt_WrongType()
        {
            TestHtmlTable     t = new TestHtmlTable();
            ControlCollection c = t.GetCollection();

            c.AddAt(0, new HtmlTable());
        }
        public void HtmlTableRowControlCollectionAddAt()
        {
            TestHtmlTable     t = new TestHtmlTable();
            ControlCollection c = t.GetCollection();

            c.AddAt(0, new HtmlTableRow());
            c.AddAt(0, new InheritedHtmlTableRow());
            Assert.AreEqual(2, c.Count, "Rows");
        }
        public void Render_TableRowCell_Simple()
        {
            TestHtmlTable t = new TestHtmlTable();
            HtmlTableRow  r = new HtmlTableRow();

            r.Cells.Add(new HtmlTableCell());
            t.Rows.Add(r);
            Assert.AreEqual(RemoveWS("<table>\r\n\t<tr>\r\n\t\t<td></td>\r\n\t</tr>\r\n</table>\r\n"),
                            RemoveWS(t.Render()));
        }
        public void Render_Table()
        {
            TestHtmlTable t = new TestHtmlTable();

            t.Align       = "*1*";
            t.BgColor     = "*2*";
            t.Border      = 3;
            t.BorderColor = "*4*";
            t.CellPadding = 5;
            t.CellSpacing = 6;
            t.Height      = "*7*";
            t.Width       = "*8*";
            Assert.AreEqual(RemoveWS("<table align=\"*1*\" bgcolor=\"*2*\" border=\"3\" bordercolor=\"*4*\" cellpadding=\"5\" cellspacing=\"6\" height=\"*7*\" width=\"*8*\">\r\n</table>\r\n"), RemoveWS(t.Render()));
        }
        public void Render_TableRow()
        {
            TestHtmlTable t = new TestHtmlTable();

            t.Border = 0;
            HtmlTableRow r1 = new HtmlTableRow();

            r1.Align = "right";
            t.Rows.Add(r1);
            HtmlTableRow r2 = new HtmlTableRow();

            r2.Align = "left";
            t.Rows.Add(r2);
            Assert.AreEqual(RemoveWS("<table border=\"0\">\r\n\t<tr align=\"right\">\r\n\t</tr>\r\n\t<tr align=\"left\">\r\n\t</tr>\r\n</table>\r\n"), RemoveWS(t.Render()));
        }
        public void Render_TableRowCell()
        {
            TestHtmlTable t = new TestHtmlTable();

            t.Align = "center";
            HtmlTableRow r = new HtmlTableRow();

            r.VAlign = "top";
            t.Rows.Add(r);
            HtmlTableCell c1 = new HtmlTableCell();

            c1.Align     = "right";
            c1.InnerText = "Go";
            r.Cells.Add(c1);
            HtmlTableCell c2 = new HtmlTableCell();

            c2.Align     = "left";
            c2.InnerHtml = "<a href=\"http://www.example.com\">Example</a>";
            r.Cells.Add(c2);
            Assert.AreEqual(RemoveWS("<table align=\"center\">\r\n\t<tr valign=\"top\">\r\n\t\t<td align=\"right\">Go</td>\r\n\t\t<td align=\"left\"><a href=\"http://www.example.com\">Example</a></td>\r\n\t</tr>\r\n</table>\r\n"), RemoveWS(t.Render()));
        }
Beispiel #9
0
		public void Render_Table ()
		{
			TestHtmlTable t = new TestHtmlTable ();
			t.Align = "*1*";
			t.BgColor = "*2*";
			t.Border = 3;
			t.BorderColor = "*4*";
			t.CellPadding = 5;
			t.CellSpacing = 6;
			t.Height = "*7*";
			t.Width = "*8*";
			Assert.AreEqual (RemoveWS ("<table align=\"*1*\" bgcolor=\"*2*\" border=\"3\" bordercolor=\"*4*\" cellpadding=\"5\" cellspacing=\"6\" height=\"*7*\" width=\"*8*\">\r\n</table>\r\n"), RemoveWS (t.Render ()));
		}
Beispiel #10
0
		public void HtmlTableRowControlCollectionAddAt ()
		{
			TestHtmlTable t = new TestHtmlTable ();
			ControlCollection c = t.GetCollection ();
			c.AddAt (0, new HtmlTableRow ());
			c.AddAt (0, new InheritedHtmlTableRow ());
			Assert.AreEqual (2, c.Count, "Rows");
		}
Beispiel #11
0
		public void HtmlTableRowControlCollectionAddAt_WrongType ()
		{
			TestHtmlTable t = new TestHtmlTable ();
			ControlCollection c = t.GetCollection ();
			c.AddAt (0, new HtmlTable ());
		}
Beispiel #12
0
		public void HtmlTableRowControlCollectionAddAt_Null ()
		{
			TestHtmlTable t = new TestHtmlTable ();
			ControlCollection c = t.GetCollection ();
			c.AddAt (0, null);
		}
Beispiel #13
0
		public void Render_TableRowCell ()
		{
			TestHtmlTable t = new TestHtmlTable ();
			t.Align = "center";
			HtmlTableRow r = new HtmlTableRow ();
			r.VAlign = "top";
			t.Rows.Add (r);
			HtmlTableCell c1 = new HtmlTableCell ();
			c1.Align = "right";
			c1.InnerText = "Go";
			r.Cells.Add (c1);
			HtmlTableCell c2 = new HtmlTableCell ();
			c2.Align = "left";
			c2.InnerHtml = "<a href=\"http://www.go-mono.com\">Mono</a>";
			r.Cells.Add (c2);
			Assert.AreEqual (RemoveWS ("<table align=\"center\">\r\n\t<tr valign=\"top\">\r\n\t\t<td align=\"right\">Go</td>\r\n\t\t<td align=\"left\"><a href=\"http://www.go-mono.com\">Mono</a></td>\r\n\t</tr>\r\n</table>\r\n"), RemoveWS (t.Render ()));
		}
Beispiel #14
0
		public void Render_TableRowCell_Simple ()
		{
			TestHtmlTable t = new TestHtmlTable ();
			HtmlTableRow r = new HtmlTableRow ();
			r.Cells.Add (new HtmlTableCell ());
			t.Rows.Add (r);
			Assert.AreEqual (RemoveWS ("<table>\r\n\t<tr>\r\n\t\t<td></td>\r\n\t</tr>\r\n</table>\r\n"),
					RemoveWS (t.Render ()));
		}
Beispiel #15
0
		public void Render_TableRow ()
		{
			TestHtmlTable t = new TestHtmlTable ();
			t.Border = 0;
			HtmlTableRow r1 = new HtmlTableRow ();
			r1.Align = "right";
			t.Rows.Add (r1);
			HtmlTableRow r2 = new HtmlTableRow ();
			r2.Align = "left";
			t.Rows.Add (r2);
			Assert.AreEqual (RemoveWS ("<table border=\"0\">\r\n\t<tr align=\"right\">\r\n\t</tr>\r\n\t<tr align=\"left\">\r\n\t</tr>\r\n</table>\r\n"), RemoveWS (t.Render ()));
		}
Beispiel #16
0
		public void Render_TableRow_Simple ()
		{
			TestHtmlTable t = new TestHtmlTable ();
			t.Rows.Add (new HtmlTableRow ());
			Assert.AreEqual (RemoveWS ("<table>\r\n\t<tr>\r\n\t</tr>\r\n</table>\r\n"), RemoveWS (t.Render ()));
		}
        public void Render_Table_Simple()
        {
            TestHtmlTable t = new TestHtmlTable();

            Assert.AreEqual(RemoveWS("<table>\r\n</table>\r\n"), RemoveWS(t.Render()));
        }
Beispiel #18
0
		public void Render_Table_Simple ()
		{
			TestHtmlTable t = new TestHtmlTable ();
			Assert.AreEqual (RemoveWS ("<table>\r\n</table>\r\n"), RemoveWS (t.Render ()));
		}