如何添加对ASP.NET网站项目的引用? [英] How to Add a Reference to ASP.NET Website Project ?

查看:253
本文介绍了如何添加对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


这篇关于如何添加对ASP.NET网站项目的引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆