I would like to write some tests (the kind built in to Visual Studio 2008) against some ASP.NET pages in a forms-authenticated site, but I'm hung up on getting past the login page redirect --- I keep getting back a page of type ASP.login_aspx
instead of the one I'm calling. Ideally, I'd like to have the test run while actually logged in as normal, but faking it (or even running without login context at all) would be preferable to not being able to write these tests.
Is there any way to make this work?
EDIT:
I'm not trying to test UI here; mainly, I'm trying to unit-test any little helper methods and whatnot I have in the page code (e.g. FigureSomethingOutFromTheQueryString()
and the like).