O'Reilly logo

Software Testing using Visual Studio 2010 by S. Subashni, N. Satheesh Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Unit testing an ASP.NET application

Creating the unit test for an ASP.NET web site or application is similar to how we created one for the normal class library. The ASP.NET unit test is used for testing the methods or the business logic used for the ASP.NET site. The only difference is the additional attributes added to the methods to identify the URL and the Host. The ASP.NET unit test can be run using IIS web server or the development web server. If it is on the IIS server, we can choose the user identity with which the unit test should run. The default identity depends on the version of the IIS server and the operating system.

Let us consider a simple user registration page created using ASP.NET using Visual Studio. The following is the UI ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required