Author: gonzalo
Date: 2006-09-24 10:52:17 -0400 (Sun, 24 Sep 2006)
New Revision: 65854

Modified:
   trunk/mcs/class/corlib/Test/System.IO/ChangeLog
   trunk/mcs/class/corlib/Test/System.IO/FileInfoTest.cs
Log:
2006-09-24 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * FileInfoTest.cs: improved IsReadOnly test case. Patch by Joel Reed.



Modified: trunk/mcs/class/corlib/Test/System.IO/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.IO/ChangeLog     2006-09-24 14:40:04 UTC 
(rev 65853)
+++ trunk/mcs/class/corlib/Test/System.IO/ChangeLog     2006-09-24 14:52:17 UTC 
(rev 65854)
@@ -1,3 +1,7 @@
+2006-09-24 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * FileInfoTest.cs: improved IsReadOnly test case. Patch by Joel Reed.
+
 2006-09-21  Gert Driesen  <[EMAIL PROTECTED]>
 
        * FileNotFoundExceptionTest.cs: Added ctor tests.

Modified: trunk/mcs/class/corlib/Test/System.IO/FileInfoTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.IO/FileInfoTest.cs       2006-09-24 
14:40:04 UTC (rev 65853)
+++ trunk/mcs/class/corlib/Test/System.IO/FileInfoTest.cs       2006-09-24 
14:52:17 UTC (rev 65854)
@@ -118,12 +118,17 @@
                                FileStream stream = File.Create (path);
                                stream.WriteByte (12);
                                stream.Close ();
-                               FileInfo info = new FileInfo (path);
-                               AssertEquals ("test#01", false, 
info.IsReadOnly);
-                               info.IsReadOnly = true;
-                               AssertEquals ("test#02", true, info.IsReadOnly);
-                               info.IsReadOnly = false;
-                               AssertEquals ("test#03", false, 
info.IsReadOnly);
+
+                               FileInfo info1 = new FileInfo (path);
+                               AssertEquals ("test#01", false, 
info1.IsReadOnly);
+
+                               FileInfo info2 = new FileInfo (path);
+                               info2.IsReadOnly = true;
+                               AssertEquals ("test#02", true, 
info1.IsReadOnly);
+
+                               FileInfo info1 = new FileInfo (path);
+                               info2.IsReadOnly = false;
+                               AssertEquals ("test#03", false, 
info1.IsReadOnly);
                        } finally {
                                DeleteFile (path);
                        }

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

Reply via email to