+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.
[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");