在Visual Studio 2008中测试项目 [英] Test project in Visual Studio 2008

查看:79
本文介绍了在Visual Studio 2008中测试项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个使用C#Visual Studio 2008开发的网站.现在,我想为文件背后的代码中定义的所有方法添加一个测试方法.我需要在应用代码中创建相应的类来编写测试方法吗?

Hi,

I have a website developed in C# Visual Studio 2008. Now I want to add a test method for all the methods defined in code behind file. Do i need to create corresponding class in app code for writing test method?

推荐答案

否-只需将Web项目添加为测试项目中的引用,然后编写所有在那里正常进行测试.
No - just add the web project as a reference in your test project and write all your tests in there as normal.


这篇关于在Visual Studio 2008中测试项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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