WebSite or WebApplication in C# for TDD Approach ? Unit Testing Us

M

MS Techie

Hi All,

When Following a TDD Approach, where in we write a test for the web
application , which option is better. Is it better to use a

1. Create a new WebApplication Project
2. Create a new WebSite option

Because if I use a WebApplication, then only 1 dll gets created for all the
webpages. When I create a test project (right click and select the option
"Create Tests") and create a new unit test, When I run the application, I get
the message, web.config has changed. How do I tackle this situation. Do I
need to set some attributes in web.config for this ?

If I create a new WebSite ,then for every page it creates a dll . When I
right click and select the option to "Create Test" , I dont get a new Test
Project created automatically.

I am using Visual Studio 2005 Team Edition for Software Developers. Please
suggest me the best option for this version of Visual Studio and dont suggest
me VS 2008 since my company has already brought VS 2005 edition licenses.

Also if there any links to sample applications developed in C# on TDD
Approach, it would be great…

Thanks in Advance
 
M

MS Techie

Also what would be the best way to Test Web Services.. It is good to use the
Unit testing approach using "Visual Studio 2005 Team Edition" unit testing
tools (like unit tests)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top