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

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

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