C# 单元测试生成 [英] C# Unit Test Generation

查看:43
本文介绍了C# 单元测试生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 VS 2008 可以生成单元测试代码来测试 C# 类,但是我找不到正确的鼠标点击顺序来生成代码.有什么帮助吗?

I know it is possible for VS 2008 to generate unit test code to test C# classes, but I cannot find the right sequence of mouse clicks to generate the code. Any help?

推荐答案

我不认为 Visual Studio 的生成单元测试功能在专业版中可用.您需要 Team Developer 版、Team Tester 版或 Team Suite 版.

I don't think the generate unit test function of Visual Studio is available in the Professional version. You need Team Developer edition, Team Tester edition or Team Suite edition.

您可能想要查看 PEX.它在专业版中运行良好.

You may want to look into PEX instead. It works in Professional just fine.

这篇关于C# 单元测试生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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