Hi Michael,
first of all, you probably would be best of using the Spring.NET
forum, http://forum.springframework.net/ . It has more activity and
readers. In your case the hard part is that ASP.NET has a lot of web
context dependencies and prior to ASP.NET makes it quite hard to test.
Something that might help is using MVP to abstract as much as possible
and get logic out of view or just plain switch to ASP.NET MVC (usually
not that easy to sell).
Cheers,
-Marko
On Fri, Jul 31, 2009 at 4:18 PM, Michael Hale<mik...@gm...> wrote:
> Hi,
>
> I'm new to the list. I was wondering how I might go about testing the
> code behind for aspx pages. I'd like to be able to do something like
> this in nunit:
>
> var page = new AwesomePage();
> Assert.AreEqual("this page is awesome", page.TextBox1.Text);
>
> In other words how do I unit test my controllers?
>
> - Michael
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Springnet-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springnet-developer
>
|