如何添加对ASP.NET网站项目的引用?

如何添加对ASP.NET网站项目的引用?

问题描述:

嗨朋友们,

我正在使用asp.net上的nunit框架进行单元测试....我的疑问是我有一个解决方案,它有两个项目,一个是CLass Library,另一个是ASP.NET网站?我需要的是我必须在我的类库中添加对我的ASP.NET网站的引用以进行单元测试......因为它是ASP.NET网站项目,所以没有带dll的bin文件夹?然后我如何添加ASP.NET网站作为类库的参考??????

Hi Friends,
I am working on Unit testing with nunit framework on asp.net .... My doubt is that i have a Solution which has two projects one is CLass Library and another is ASP.NET Website ? What my need is i have to add a reference to my ASP.NET Website in my Class Library for unit testing...... Since it is ASP.NET Website project there is no bin folder with dll ?? Then How can i add ASP.NET website as reference to Class Library ??????

你尝试进行UI测试的方式是错误的。所以请查看下面提到的文章以获取更多信息。



使用WatiN,TestDriven.NET,NUnit和Visual Studio的测试工具



另一个有用的链接可能得到帮助。



如何在ASP.NET网络表单中应用单元测试
The way you try to do UI testing is wrong.So please check below mentioned article for more info.

A Test Harness with WatiN, TestDriven.NET, NUnit with Visual Studio

Another useful link may be helped to you.

How apply Unit tests in ASP.NET webforms