如何在VS 2012 RC专业加假货大会? [英] How do I add a fakes assembly in VS 2012 Professional RC?

查看:167
本文介绍了如何在VS 2012 RC专业加假货大会?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据下面的两篇文章在VS 2012和Microsoft正版正货测试框架,我应该能够在Visual右键点击我的测试项目的引用程序集,然后选择添加正版正货集结号创建一个新的微软正版正货框架大会工作室11/2012年。不过,我不觉得在VS 2012 RC Professional中的上下文菜单项,它应该是。我可能需要引用Microsoft.QualityTools.Testing.Fakes组装,但在添加引用搜索,我找不到它的。自公测以来需要的菜单变化?我是否需要安装一个扩展?

According to the two articles below on VS 2012 and Microsoft Fakes Test Framework, I should be able to right click on an assembly in my test project's references and choose "Add Fakes Assembly" to create a new Microsoft Fakes Framework Assembly in Visual Studio 11 / 2012. However I do not find the context menu item in VS 2012 RC Professional where it should be. I may need to reference the Microsoft.QualityTools.Testing.Fakes assembly, but I cannot find it in the add reference search either. Has the required menu changed since beta? Do I need to install an extension?

如何在VS 2012专业版RC添加假货大会?

文章中引用:

  • Using Fakes for easy unit test stubs and shims in VS11
  • Creating Fakes for the System-Under-Test

推荐答案

更新: VS2012更新2将包括高级假货的支持。

Update: VS2012 Update 2 will include Fakes support in Premium.

请参阅的 http://blogs.msdn.com/b/bharry/archive/2013/01/30/announcing-visual-studio-2012-update -2- vs2012-2.aspx

我问在Microsoft Connect的门户网站这个问题......,答案是令人失望的:

I asked this question in the Microsoft Connect portal...and the answer is disappointing:

RC文件是不正确的。假货只在VS旗舰版可供选择。我已经通过了假货团队您的问题。目前,我们没有对任何PEX信息VS 2012

The RC documentation was incorrect. Fakes are available only in VS Ultimate. I have passed your concerns on the Fakes team. At the moment, we don't have any information about PEX for VS 2012.

我详细的问题是:

MSDN文档指出假货框架,痣框架的继任者对代码isolatiion单元测试是在Premium和Ultimate版本中提供。

MSDN documentation states that the Fakes framework, the successor of Moles framework for isolatiion of code for unit tests is available in the Premium and Ultimate editions.

http://msdn.microsoft。 COM / EN-US /库/ dd264975(v = vs.110)

此外,在其他地方MSDN博客,彼得教务长证实了同样的几个月前为VS2011发布:

Also, elsewhere in MSDN blogs, Peter Provost confirmed the same some months ago for the VS2011 release:

http://blogs.msdn.com/b/visualstudioalm/archive/2012/03/09/10279666.aspx

但是,当我试着今天的高级RC出来,我无法看到正版正货添加大会上下文菜单在我的测试项目包含代码来测试我的样本DLL选项。我安装了终极RC,我得到了假货菜单支持后,这是唯一的。

But when I tried out the Premium RC today, I couldn't see the "Add Fakes Assembly" context menu option in my test project for my sample DLL containing code to test. It was only after I installed the Ultimate RC that I got the Fakes menu support.

这促使我问你澄清如下:

This prompts me to ask of you to clarify the following:

1)是我的观察正确,假货确实只适用于旗舰版?那是因为它的的IntelliTrace的依赖,这是一个最终的,唯一的功能?

1) Is my observation correct, that Fakes is indeed only available with Ultimate? Is that because of its dependency on IntelliTrace, which is an Ultimate-only feature?

2)如果是,那么为什么会出现指示与高级假货的可用性相互矛盾的信息?

2) If yes, then why is there conflicting information indicating the availability of Fakes with Premium?

3)假货框架为什么要现在依赖的IntelliTrace当它在VS 2010中工作良好,没有这种依赖性?这实质上是切断痣的现有用户使用VS 2010的专业,甚至Premium版,并把它们升级到VS 2012的问题,因为在痣他们现有的依赖于他们的单元测试。

3) Why should the Fakes framework be now dependent on IntelliTrace when it worked well without this dependency in VS 2010? This is essentially cutting off existing users of Moles with Professional or even Premium editions of VS 2010 and putting their upgrade to VS 2012 in question because of their existing reliance on Moles for their unit tests.

4)我们已经在使用摩尔,我们的VS 2010专业版。因此,这的确观察有我担心本决定使用我们的痣C#开发人员之一。充其量,我们可以认为升级到高级版为我们庞大的开发基础(因为我们也有代码覆盖支持)的...但一个直接升级到旗舰版只是为了让UT的支持将永远不会在卡片上。

4) We are already using Moles with our VS 2010 Professional edition. So this observation indeed has me worried about the present decision to use Moles among our C# developers. At best, we can think of an upgrade to Premium for our large developer base (given that we also have code coverage support)... but an upgrade straight to Ultimate just to get UT support will never be on the cards.

我希望在最早已经澄清这些问题,这样我们就可以开始寻找替代痣,万一你的决定的确是保持独家VS 2012终极假货。

I wish to have these points clarified at the earliest so that we can start looking for alternatives to Moles, in case your decision is indeed to keep Fakes exclusive to VS 2012 Ultimate.

这篇关于如何在VS 2012 RC专业加假货大会?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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