Browse Source

2002-10-22 Nick Drochak <[email protected]>

	* XmlTextWriterTests.cs: Null is ok when prefix is "xmlns".

svn path=/trunk/mcs/; revision=8446
Nick Drochak 23 years ago
parent
commit
d571ff0966

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

@@ -1,3 +1,7 @@
+2002-10-22  Nick Drochak  <[email protected]>
+
+	* XmlTextWriterTests.cs: Null is ok when prefix is "xmlns".
+
 2002-10-21  Duncan Mak  <[email protected]>
 
 	* XmlTextReaderTests.cs:

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

@@ -87,9 +87,10 @@ namespace MonoTests.System.Xml
 			try 
 			{
 				xtw.WriteAttributeString ("xmlns", "xmlns", null, "http://abc.def");
-				Fail ("Expected an ArgumentException to be thrown.");
 			} 
-			catch (ArgumentException) {}
+			catch (Exception e) {
+				Fail ("Unexpected Exception thrown" + e);
+			}
 		}
 
 		public void TestAttributeWriteAttributeString ()