Procházet zdrojové kódy

2005-09-09 Chris Toshok <[email protected]>

	* StyleTest.cs (FontInfo_Empty): test to see if changes to
	Style.Font cause changes in the style's empty status.


svn path=/trunk/mcs/; revision=49823
Chris Toshok před 20 roky
rodič
revize
15820be451

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

@@ -1,3 +1,8 @@
+2005-09-09  Chris Toshok  <[email protected]>
+
+	* StyleTest.cs (FontInfo_Empty): test to see if changes to
+	Style.Font cause changes in the style's empty status.
+
 2005-09-07  Chris Toshok  <[email protected]>
 
 	* CalendarTest.cs (TestSelectedColorDefault): we need to split up

+ 11 - 0
mcs/class/System.Web/Test/System.Web.UI.WebControls/StyleTest.cs

@@ -430,6 +430,17 @@ namespace MonoTests.System.Web.UI.WebControls
 			Assert.AreEqual (1, s.StateBag.Count, "Count");
 		}
 
+		[Test]
+		public void FontInfo_Empty ()
+		{
+			FontInfo f;
+			StyleTestClass s = new StyleTestClass ();
+			f = s.Font;
+			Assert.IsTrue (s.Empty, "Empty after getter");
+			s.Font.Name = "Arial";
+			Assert.IsFalse (s.Empty, "No longer empty");
+		}
+
 		public void Render ()
 		{
 			HtmlTextWriter	writer;