2005-09-18 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Sun, 18 Sep 2005 23:51:38 +0000 (23:51 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Sun, 18 Sep 2005 23:51:38 +0000 (23:51 -0000)
* FormsIdentityTest.cs: Changed constructor used to create the ticket
to one that doesn't throw a NRE under MS runtime.

svn path=/trunk/mcs/; revision=50210

mcs/class/System.Web/Test/System.Web.Security/ChangeLog
mcs/class/System.Web/Test/System.Web.Security/FormsIdentityTest.cs

index a03ba83632b96af7471382b47ca9213546fabf43..beeba433d32923d48076946accd8eb3f15a7f6d5 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-18  Sebastien Pouliot  <sebastien@ximian.com> 
+
+       * FormsIdentityTest.cs: Changed constructor used to create the ticket
+       to one that doesn't throw a NRE under MS runtime.
+
 2005-09-09  Sebastien Pouliot  <sebastien@ximian.com> 
  
        * DefaultAuthenticationEventArgsCas.cs: New. CAS unit tests.
index 40357b6e675861d9502e53ef975701400b5be24e..1cc0faf368b167fe904ee1cd517cdbe3ea823d68 100644 (file)
@@ -57,7 +57,8 @@ namespace MonoTests.System.Web.Security {
                [Test]
                public void Ticket ()
                {
-                       FormsIdentity identity = new FormsIdentity (new FormsAuthenticationTicket ("mine", false, Int32.MaxValue));
+                       FormsAuthenticationTicket ticket = new FormsAuthenticationTicket (3, "mine", DateTime.MinValue, DateTime.Now.AddSeconds (-1), false, "data", "path");
+                       FormsIdentity identity = new FormsIdentity (ticket);
                        Assert.AreEqual ("Forms", identity.AuthenticationType, "AuthenticationType");
                        Assert.IsTrue (identity.IsAuthenticated, "IsAuthenticated");
                        Assert.AreEqual ("mine", identity.Name, "Name");