rendered paste bodyIndex: Test/System.Web.UI.WebControls/ChangeLog
===================================================================
--- Test/System.Web.UI.WebControls/ChangeLog (revision 58636)
+++ Test/System.Web.UI.WebControls/ChangeLog (working copy)
@@ -1,3 +1,7 @@
+2006-03-28 Alexandre Miguel Pedro Gomes <alexmipego@gmail.com>
+
+ * FontInfo.cs: Implemented ShouldSerializeNames tests
+
2006-03-06 Vladimir Krasnov <vladimirk@mainsoft.com>
* CalendarTest.cs: refactoring, inline delegates replaced with
Index: Test/System.Web.UI.WebControls/FontInfoTest.cs
===================================================================
--- Test/System.Web.UI.WebControls/FontInfoTest.cs (revision 58636)
+++ Test/System.Web.UI.WebControls/FontInfoTest.cs (working copy)
@@ -63,6 +63,18 @@
}
[Test]
+ public void ShouldSerializeNames ()
+ {
+ Style style = new Style ();
+ FontInfo fontInfo = style.Font;
+ Assert.IsFalse (fontInfo.ShouldSerializeNames ());
+ fontInfo.Name = "Verdana";
+ Assert.IsTrue (fontInfo.ShouldSerializeNames ());
+ fontInfo.Name = String.Empty;
+ Assert.IsFalse (fontInfo.ShouldSerializeNames ());
+ }
+
+ [Test]
public void Style_Merge ()
{
}
Index: System.Web.UI.WebControls/FontInfo.cs
===================================================================
--- System.Web.UI.WebControls/FontInfo.cs (revision 58636)
+++ System.Web.UI.WebControls/FontInfo.cs (working copy)
@@ -392,10 +392,9 @@
}
}
- [MonoTODO]
public bool ShouldSerializeNames()
{
- throw new NotImplementedException("Microsoft Internal, not sure what to do");
+ return (Names.Length != 0);
}
public override string ToString()
Index: System.Web.UI.WebControls/ChangeLog
===================================================================
--- System.Web.UI.WebControls/ChangeLog (revision 58636)
+++ System.Web.UI.WebControls/ChangeLog (working copy)
@@ -1,3 +1,7 @@
+2006-03-28 Alexandre Miguel Pedro Gomes <alexmipego@gmail.com>
+
+ * FontInfo.cs: Implemented ShouldSerializeNames
+
2006-03-23 Vladimir Krasnov <vladimirk@mainsoft.com>
* DataGrid.cs, DataList.cs, RepeatInfo.cs: added accessablity features