+2006-07-10 Andrew Skiba <andrews@mainsoft.com>
+
+ * FormsAuthenticationTest.cs: run 2 tests in web context, so they
+ succeed.
+
2006-05-01 Chris Toshok <toshok@ximian.com>
* MembershipTest.cs (GeneratePassword): add test for password
using System.Web.Security;
using NUnit.Framework;
+using MonoTests.SystemWeb.Framework;
namespace MonoTests.System.Web.Security {
public class FormsAuthenticationTest {
[Test]
-#if ONLY_1_1
- [ExpectedException (typeof (NullReferenceException))]
-#endif
+ [Category("NunitWeb")]
public void DefaultValues ()
+ {
+ new WebTest(new HandlerInvoker (DefaultValues_delegate)).Run ();
+ }
+
+ static public void DefaultValues_delegate ()
{
// MS use ".ASPXAUTH" while Mono use ".MONOAUTH"
string str = FormsAuthentication.FormsCookieName;
}
[Test]
-#if ONLY_1_1
- [ExpectedException (typeof (NullReferenceException))]
-#endif
+ [Category("NunitWeb")]
public void Initialize ()
+ {
+ new WebTest(new HandlerInvoker (Initialize_delegate)).Run ();
+ }
+
+ static public void Initialize_delegate ()
{
// calling Initialize without an HttpContext
FormsAuthentication.Initialize ();
// and that doesn't change the default values
- DefaultValues ();
+ DefaultValues_delegate ();
}
[Test]