Author: gert
Date: 2007-11-07 14:25:05 -0500 (Wed, 07 Nov 2007)
New Revision: 89153
Modified:
trunk/mcs/class/corlib/Test/System.Security/ChangeLog
trunk/mcs/class/corlib/Test/System.Security/SecurityElementTest.cs
Log:
* SecurityElementTest.cs: Allow TestToString to pass on 1.0 profile.
Modified: trunk/mcs/class/corlib/Test/System.Security/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Security/ChangeLog 2007-11-07
19:24:28 UTC (rev 89152)
+++ trunk/mcs/class/corlib/Test/System.Security/ChangeLog 2007-11-07
19:25:05 UTC (rev 89153)
@@ -1,3 +1,7 @@
+2007-11-07 Gert Driesen <[EMAIL PROTECTED]>
+
+ * SecurityElementTest.cs: Allow TestToString to pass on 1.0 profile.
+
2007-11-07 Atsushi Enomoto <[EMAIL PROTECTED]>
* SecurityElementTest.cs : enabled test for #333699 and added
Modified: trunk/mcs/class/corlib/Test/System.Security/SecurityElementTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Security/SecurityElementTest.cs
2007-11-07 19:24:28 UTC (rev 89152)
+++ trunk/mcs/class/corlib/Test/System.Security/SecurityElementTest.cs
2007-11-07 19:25:05 UTC (rev 89153)
@@ -720,7 +720,7 @@
Assert.IsNull (child.Children, "#B6");
}
- [Test] // bug #333725
+ [Test] // bug #
[Category ("NotWorking")]
public void FromString_CharacterReferences ()
{
@@ -748,7 +748,12 @@
Assert.AreEqual ("<value
name=\"string\"><'Suds' & "Soda">!</value>" +
Environment.NewLine, infoValue.ToString (), "#1");
Assert.AreEqual ("<'Suds' & \"Soda\">!",
infoValue.Text, "#2");
Assert.IsNull (values.Text, "#3");
+
+#if NET_2_0
Assert.AreEqual (String.Format ("<values>{0}<value
name=\"string\"><'Suds' &
"Soda">!</value>{0}</values>{0}", Environment.NewLine),
values.ToString (), "#4");
+#else
+ Assert.AreEqual (String.Format ("<values>{0} <value
name=\"string\"><'Suds' &
"Soda">!</value>{0}</values>{0}", Environment.NewLine),
values.ToString (), "#4");
+#endif
#if NET_2_0
SecurityElement sec = SecurityElement.FromString
(values.ToString ());
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches