Author: spouliot
Date: 2005-03-31 08:55:21 -0500 (Thu, 31 Mar 2005)
New Revision: 42427

Modified:
   trunk/mcs/class/corlib/Test/System/ChangeLog
   trunk/mcs/class/corlib/Test/System/ExceptionTest.cs
Log:
2005-03-31  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * ExceptionTest.cs: Added check for ArgumentNullException on 
        GetObjectData method.



Modified: trunk/mcs/class/corlib/Test/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System/ChangeLog        2005-03-31 13:47:55 UTC 
(rev 42426)
+++ trunk/mcs/class/corlib/Test/System/ChangeLog        2005-03-31 13:55:21 UTC 
(rev 42427)
@@ -1,3 +1,8 @@
+2005-03-31  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * ExceptionTest.cs: Added check for ArgumentNullException on 
+       GetObjectData method.
+
 2005-03-30  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * TypeTest.cs: Add new tests for bug #73972.

Modified: trunk/mcs/class/corlib/Test/System/ExceptionTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System/ExceptionTest.cs 2005-03-31 13:47:55 UTC 
(rev 42426)
+++ trunk/mcs/class/corlib/Test/System/ExceptionTest.cs 2005-03-31 13:55:21 UTC 
(rev 42427)
@@ -5,10 +5,12 @@
 //     Linus Upson ([EMAIL PROTECTED])
 //     Duncan Mak ([EMAIL PROTECTED])
 //
-// (C) Copyright, Novell, Inc. 2004
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 
-using System;
+using System;
+using System.Runtime.Serialization;
+
 using NUnit.Framework;
 
 namespace MonoTests.System
@@ -206,6 +208,14 @@
                        a.Source = "foo";
 
                        AssertEquals (null, a.InnerException.Source);
+               }
+
+               [Test]
+               [ExpectedException (typeof (ArgumentNullException))]
+               public void GetObjectData_Null ()
+               {
+                       Exception e = new Exception ();
+                       e.GetObjectData (null, new StreamingContext 
(StreamingContextStates.All));
                }
        }
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to