“创建单元测试”对话框显示没有类型 [英] "Create Unit Tests" dialog shows no types

查看:80
本文介绍了“创建单元测试”对话框显示没有类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在VS2008中打开特定解决方案时,打开一个源文件,右键单击一个公共方法,选择"创建单元测试",我得到了"创建单元测试"对话框,但以下是错误的:

1)没有显示类型(整个类型区域为空)

1) No types are shown (the entire type area is blank)

2)"输出项目"下拉不存在(不是空白或空,整个控件都缺失)

2) The "Output project" dropdown is not there (not blank or empty, the entire control is missing)

3)如果我点击"设置"它关闭了"创建单元测试"对话框立即。

3) If I click on "Settings" it closes the "Create Unit Tests" dialog box immediately.

4)OK按钮显示为灰色(因为没有选择测试或项目,我认为)

4) The OK button is greyed out (since no tests or project is chosen, I assume)

这仅适用于特定的解决方案。这个解决方案非常庞大,我最近将它从VS2005升级,该解决方案似乎在所有其他方面都能正常工作。我们现在想开始使用单元测试(我们没有使用VS2005)。但我不能创造任何。使用相同解决方案(从版本控制系统检出)的其他人没有这个问题,他们可以使用"创建单元测试"向该解决方案添加单元测试。对话框。

This is just for a particular solution. That solution is quite large and I recently upgraded it from VS2005, The solution seems to work fine in all other respects. We now want to start using unit tests (which we did not with VS2005). But I cannot create any. Other people, using the same solution (checked out from the version control system), do not have this problem, they can add unit test to this solution using the "Create Unit Tests" dialog.

"创建单元测试"对话框也适用于我,在我的机器上,以及其他新创建的解决方案。

The "Create Unit Tests" dialog box works for me too, on my machine, on other, newly created solutions.

所以,似乎这是我的机器和这个解决方案特有的问题。不幸的是,它是一个必不可少的解决方案,我负责创建单元测试...

So, it seems that this is a problem particular to my machine and this solution. Unfortunately it is an essential solution and I am responsible for creating unit tests...

任何想法可能是什么错误?

Any idea what could be wrong?

我正在使用Visual Studio Team System 2008开发版。在同一台计算机上,我已经为软件开发人员安装了Visual Studio 2005 Team Edition(并使用了单元测试工具)(我还没有卸载VS2005)。

I am using Visual Studio Team System 2008 Development Edition. On the same computer I had already installed Visual Studio 2005 Team edition for Software Developers (and used the unit test tools in it) (and I have not uninstalled VS2005).

I我正在运行Windows Vista Ultimate 64位。

I am running Windows Vista Ultimate 64 bit.

这里需要注意的一点是,我是唯一一位曾在VS2005中尝试创建单元测试的人。可以以某种方式注册单元测试设置,然后破坏VS2008的安装吗?

One thing to note here is that I am the only one who previously had experimented with creating unit tests in VS2005. Can that somehow have registered unit testing settings that then corrupted the VS2008 installation?

感谢您的帮助,

推荐答案

Klas

在VS2005中,你是否在32位机器上创建了单元测试?据我所知,64位应用程序不支持单元测试框架。你可以阅读这篇文章。很抱歉。

In VS2005, did you create unit test on an 32 bit machine? So far as I know, the Unit Test Framework is not supported for 64 bit apps. You can read this post. Sorry about that.


这篇关于“创建单元测试”对话框显示没有类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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