Beispiel #1
0
        public void HtmlTableCellControlCollectionAddAt_Null()
        {
            TestHtmlTableRow  t = new TestHtmlTableRow();
            ControlCollection c = t.GetCollection();

            c.AddAt(0, null);
        }
Beispiel #2
0
        public void HtmlTableCellControlCollectionAddAt_WrongType()
        {
            TestHtmlTableRow  t = new TestHtmlTableRow();
            ControlCollection c = t.GetCollection();

            c.AddAt(0, new HtmlTable());
        }
Beispiel #3
0
        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");
        }
Beispiel #4
0
        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());
        }
Beispiel #5
0
		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");
		}
Beispiel #6
0
		public void HtmlTableCellControlCollectionAddAt_WrongType ()
		{
			TestHtmlTableRow t = new TestHtmlTableRow ();
			ControlCollection c = t.GetCollection ();
			c.AddAt (0, new HtmlTable ());
		}
Beispiel #7
0
		public void HtmlTableCellControlCollectionAddAt_Null ()
		{
			TestHtmlTableRow t = new TestHtmlTableRow ();
			ControlCollection c = t.GetCollection ();
			c.AddAt (0, null);
		}
Beispiel #8
0
		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 ());
		}