Author: spouliot
Date: 2008-01-02 10:17:59 -0500 (Wed, 02 Jan 2008)
New Revision: 92108

Modified:
   trunk/mcs/class/corlib/Test/System.Security/ChangeLog
   trunk/mcs/class/corlib/Test/System.Security/SecureStringTest.cs
Log:
2008-01-02  Sebastien Pouliot  <[EMAIL PROTECTED]> 

        * SecureStringTest.cs: Add test case for InsertAt (#350820)



Modified: trunk/mcs/class/corlib/Test/System.Security/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Security/ChangeLog       2008-01-02 
15:14:10 UTC (rev 92107)
+++ trunk/mcs/class/corlib/Test/System.Security/ChangeLog       2008-01-02 
15:17:59 UTC (rev 92108)
@@ -1,3 +1,7 @@
+2008-01-02  Sebastien Pouliot  <[EMAIL PROTECTED]> 
+
+       * SecureStringTest.cs: Add test case for InsertAt (#350820)
+
 2008-01-02  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * SecureStringTest.cs: Add test cases for Copy (#350840)

Modified: trunk/mcs/class/corlib/Test/System.Security/SecureStringTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Security/SecureStringTest.cs     
2008-01-02 15:14:10 UTC (rev 92107)
+++ trunk/mcs/class/corlib/Test/System.Security/SecureStringTest.cs     
2008-01-02 15:17:59 UTC (rev 92108)
@@ -186,6 +186,16 @@
                }
 
                [Test]
+               public void InsertAt_UsedLikeAppendChar () // #350820
+               {
+                       SecureString ss = new SecureString ();
+                       ss.AppendChar ('T');
+                       Assert.AreEqual (1, ss.Length, "AppendChar");
+                       ss.InsertAt (1, 'e');
+                       Assert.AreEqual (2, ss.Length, "InsertAt");
+               }
+
+               [Test]
                [ExpectedException (typeof (ArgumentOutOfRangeException))]
                public void SetAt_Negative ()
                {

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

Reply via email to