Author: gert
Date: 2007-01-11 15:14:01 -0500 (Thu, 11 Jan 2007)
New Revision: 70882

Modified:
   trunk/mcs/class/corlib/Test/System.IO/ChangeLog
   trunk/mcs/class/corlib/Test/System.IO/DirectoryTest.cs
Log:
* DirectoryTest.cs: Fixed compiler warning by improving test.


Modified: trunk/mcs/class/corlib/Test/System.IO/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.IO/ChangeLog     2007-01-11 20:06:20 UTC 
(rev 70881)
+++ trunk/mcs/class/corlib/Test/System.IO/ChangeLog     2007-01-11 20:14:01 UTC 
(rev 70882)
@@ -1,3 +1,7 @@
+2007-01-11  Gert Driesen  <[EMAIL PROTECTED]>
+
+       * DirectoryTest.cs: Fixed compiler warning by improving test.
+
 2006-12-21  Gert Driesen  <[EMAIL PROTECTED]>
 
        * MemoryStreamTest.cs: Added (de)serialization tests for bug #80205.

Modified: trunk/mcs/class/corlib/Test/System.IO/DirectoryTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.IO/DirectoryTest.cs      2007-01-11 
20:06:20 UTC (rev 70881)
+++ trunk/mcs/class/corlib/Test/System.IO/DirectoryTest.cs      2007-01-11 
20:14:01 UTC (rev 70882)
@@ -137,6 +137,9 @@
 #if NET_2_0
                        Assert.Fail ("#1");
                } catch (IOException ex) {
+                       Assert.AreEqual (typeof (IOException), ex.GetType (), 
"#2");
+                       Assert.IsNotNull (ex.Message, "#3");
+                       Assert.IsNull (ex.InnerException, "#4");
 #else
                        Assert.IsFalse (dinfo.Exists, "#2");
                        Assert.IsTrue (dinfo.FullName.EndsWith 
("DirectoryTest.Test.ExistsAsFile"), "#3");

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

Reply via email to