diff options
author | Duncan Mak <duncan@mono-cvs.ximian.com> | 2002-03-28 23:20:01 +0300 |
---|---|---|
committer | Duncan Mak <duncan@mono-cvs.ximian.com> | 2002-03-28 23:20:01 +0300 |
commit | 66461e7b7a4292de076c82030d70ebe3e6b90f73 (patch) | |
tree | fc63aa6a6509b32d09d8b424e1c440b58a31f942 /mcs/class/System.XML/Test/XmlWhiteSpaceTests.cs | |
parent | 34b2b26e3e313db46127f064f5da1de0c9147423 (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/XmlWhiteSpaceTests.cs')
-rwxr-xr-x | mcs/class/System.XML/Test/XmlWhiteSpaceTests.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mcs/class/System.XML/Test/XmlWhiteSpaceTests.cs b/mcs/class/System.XML/Test/XmlWhiteSpaceTests.cs index 100726b0347..402f3f2c916 100755 --- a/mcs/class/System.XML/Test/XmlWhiteSpaceTests.cs +++ b/mcs/class/System.XML/Test/XmlWhiteSpaceTests.cs @@ -57,9 +57,12 @@ namespace Ximian.Mono.Tests { try { broken = document.CreateWhitespace ("black"); + + } catch (ArgumentException) { + return; + } catch (Exception e) { - AssertEquals ("Incorrect Exception thrown", - e.GetType (), Type.GetType ("System.ArgumentException")); + Fail ("Incorrect Exception thrown."); } } |