Ver Fonte

2004-06-14 Atsushi Enomoto <[email protected]>

	* XmlTextWriterTests.cs : Avoid CR/CRLF testing complexity.

svn path=/trunk/mcs/; revision=29492
Atsushi Eno há 21 anos atrás
pai
commit
357572721d

+ 4 - 0
mcs/class/System.XML/Test/System.Xml/ChangeLog

@@ -1,3 +1,7 @@
+2004-06-14  Atsushi Enomoto <[email protected]>
+
+	* XmlTextWriterTests.cs : Avoid CR/CRLF testing complexity.
+
 2004-06-14  Atsushi Enomoto <[email protected]>
 
 	* XmlUrlResolverTests.cs : Unlike MS.NET, we treats Unix absolute file

+ 2 - 1
mcs/class/System.XML/Test/System.Xml/XmlTextWriterTests.cs

@@ -1258,10 +1258,11 @@ namespace MonoTests.System.Xml
 			XmlDocument doc = new XmlDocument ();
 			doc.LoadXml ("<root><test>test<foo></foo>string</test><test>string</test></root>");
 			StringWriter sw = new StringWriter ();
+			sw.NewLine = "_";
 			XmlTextWriter xtw = new XmlTextWriter (sw);
 			xtw.Formatting = Formatting.Indented;
 			doc.WriteContentTo (xtw);
-			AssertEquals (@"<root>\n  <test>test<foo></foo>string</test>\n  <test>string</test>\n</root>", sw.ToString ().Replace ("\r\n", "\n"));
+			AssertEquals (@"<root>_  <test>test<foo></foo>string</test>_  <test>string</test>_</root>", sw.ToString ());
 		}
 	}
 }