Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Mak <duncan@mono-cvs.ximian.com>2002-03-28 23:20:01 +0300
committerDuncan Mak <duncan@mono-cvs.ximian.com>2002-03-28 23:20:01 +0300
commit66461e7b7a4292de076c82030d70ebe3e6b90f73 (patch)
treefc63aa6a6509b32d09d8b424e1c440b58a31f942 /mcs/class/System.XML/Test/XmlDeclarationTests.cs
parent34b2b26e3e313db46127f064f5da1de0c9147423 (diff)
2002-03-28 Duncan Mak <duncan@ximian.com>
* XmlDocument.cs (CreateWhitespace): (CreateSignificantWhitespace): Removed extraneous call to the ToCharArray method. * XmlSignificantWhitespace.cs (Value): Removed MonoTODO attribute. * XmlDeclarationTests.cs (TestConstructor): * XmlDocumentTypeTests.cs (TestAppendChild): * XmlSignificantWhitespaceTests.cs (TestXmlWhitespaceConstructor): * XmlWhiteSpaceTests.cs (TestXmlWhitespaceConstructor): Fixed the test for catching Exceptions. svn path=/trunk/mcs/; revision=3467
Diffstat (limited to 'mcs/class/System.XML/Test/XmlDeclarationTests.cs')
-rwxr-xr-xmcs/class/System.XML/Test/XmlDeclarationTests.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/mcs/class/System.XML/Test/XmlDeclarationTests.cs b/mcs/class/System.XML/Test/XmlDeclarationTests.cs
index ac21d4dccf4..2dd0e34d55e 100755
--- a/mcs/class/System.XML/Test/XmlDeclarationTests.cs
+++ b/mcs/class/System.XML/Test/XmlDeclarationTests.cs
@@ -53,9 +53,11 @@ namespace Ximian.Mono.Tests
{
try {
XmlDeclaration broken = document.CreateXmlDeclaration ("2.0", null, null);
+ } catch (ArgumentException) {
+ return;
+
} catch (Exception e) {
- AssertEquals ("Wrong exception was thrown",
- e.GetType (), Type.GetType ("System.ArgumentException"));
+ Fail("first arg null, wrong exception: " + e.ToString());
}
}