右键单击时不显示"RUN PEX" [英] 'RUN PEX' does not appear on rightclick

查看:91
本文介绍了右键单击时不显示"RUN PEX"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows XP计算机上运行VS2010 Pro. 我已经下载并安装了PEX& les鼠.一切都很好. 当我打开一个C#项目并将光标定位在类方法上并单击鼠标右键时,没有看到运行pex"或"pex"的选择,根据(install)docu的情况应该如此.

I run VS2010 Pro on a Windows XP machine. I have downloaded and installed PEX & Moles. That all went fine. When I open a C#-project and position the cursor on a class method and rightclick, I see no 'run pex' or 'pex' choice, as should be the case according to (install) docu.

据我所知,我已经完成了本书的全部工作,但没有任何喜悦. 似乎我忘记了某个地方,但是呢?谁可以帮助我?

As far as I could see I have done all by the book, but no joy. It seems I forget something somewhere but what? Who can help me out?

推荐答案

当我在项目中添加对Pex的引用时,我注意到了相同的功能.当我删除它并右键单击方法主体时,可以看到"Run Pex"和"Pex".

I have noticed the same functionality when I added a reference to Pex to my project. When I removed it and right clicked the method body, then I could see "Run Pex" and "Pex."

我相信,如果我错了,有人会纠正我,您只需要在您的Test项目中引用Microsoft.Pex.Framework,而不是您正在测试的项目.

I believe, and someone correct me if I am wrong, that you only need to reference the Microsoft.Pex.Framework in your Test project, not the project you are testing.

这篇关于右键单击时不显示"RUN PEX"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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