生成System.Moles? [英] Generating System.Moles?

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

问题描述



我使用的是VS2010 SP1测试版和最新版本的Pex和Moles(94.51023)下载了模式和实践SharePoint指导文件(http://spg.codeplex.com/)。这些文件包含参考实现,这些实现也使用Moles
进行单元测试。我能够成功构建行为,但请注意"System.Moles"。在包含单元测试的Microsoft.Practices.SharePoint.Common项目中显示为缺失。 



 


生成此dll应采取哪些额外步骤(如果有)? 


 


非常感谢,


 


Barton

解决方案

Barton,


你可能已经想到了这一点,但我想我会回答你的问题,因为其他人来这个帖子。


首先你需要安装Visual Studio 2010 Moles x64 - .Net扩展的隔离框架或安装整个Pecs和Moles插件。


然后你可以从"C:\Program"中引用.dll Files\Microsoft Moles \MolesAssemblies\System\2.0.0.0__b77a5c561934e089"


希望这有帮助


David


Hi,

I am using VS2010 SP1 beta and the most current release of Pex and Moles (94.51023) and have downloaded the patterns and practices SharePoint guidance files (http://spg.codeplex.com/). These files contain reference implementations that also make use of Moles for unit testing. I was able to successfully build the behaviors, but notice that the "System.Moles" appears as missing in the Microsoft.Practices.SharePoint.Common project that includes the unit tests. 

 

What additional steps, if any, should be taking to generate this dll? 

 

Thanks a lot,

 

Barton

解决方案

Barton,

You probbly have already figured this out but I thought I would answer your question incase someone else came accrose this post.

First you need to install the Visual Studio 2010 Moles x64 - Isolation Framework for .Net extention or install the whole Pecs and Moles plugin.

Then you can refrence the .dlls from "C:\Program Files\Microsoft Moles\MolesAssemblies\System\2.0.0.0__b77a5c561934e089"

Hope this helps

David


这篇关于生成System.Moles?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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