Sfoglia il codice sorgente

2005-09-19 Gonzalo Paniagua Javier <[email protected]>

	* TableCellTest.cs: TableCell does not get an automatic ID.


svn path=/trunk/mcs/; revision=50216
Gonzalo Paniagua Javier 20 anni fa
parent
commit
0ea0aafdc9

+ 4 - 0
mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,7 @@
+2005-09-19 Gonzalo Paniagua Javier <[email protected]>
+
+	* TableCellTest.cs: TableCell does not get an automatic ID.
+
 2005-09-19 Gonzalo Paniagua Javier <[email protected]>
 
 	* TableStyleTest.cs: added test to check that GridLines is correctly

+ 10 - 0
mcs/class/System.Web/Test/System.Web.UI.WebControls/TableCellTest.cs

@@ -340,5 +340,15 @@ namespace MonoTests.System.Web.UI.WebControls {
 			// and removed from property
 			Assert.AreEqual (String.Empty, td.Text, "Test-2");
 		}
+
+		[Test]
+		public void NoDefaultID ()
+		{
+			Page page = new Page ();
+			TableCell tc = new TableCell ();
+			Assert.AreEqual (null, tc.ID, "#01");
+			page.Controls.Add (tc);
+			Assert.AreEqual (null, tc.ID, "#02");
+		}
 	}
 }