单元测试 – Windows Store应用程序的单元测试库中的嘲笑框架是什么?

当我写单元测试时,我喜欢使用Rhino Mocks。

所以当我开始我的第一个Windows Store应用程序时,我首先从我的单元测试开始。当我尝试通过NuGet添加RhinoMocks时收到以下错误

Could not install package ‘RhinoMocks 3.6.1’. You are trying to
install this package into a project that targets
‘.NETCore,Version=v4.5’,but the package does not contain any assembly
references that are compatible with that framework. For more
information,contact the package author.

我和Moq有同样的问题。

.NETCor,Version = v4.5有一个嘲笑的框架吗?

大多数嘲笑框架基于Reflection.Emit。不幸的是Reflection.Emit不在WinRT中。这意味着你不能做动态代理。 (即运行时嘲笑)。这使得在编译时引用的前代的嘲笑。我唯一知道的框架是Moq: https://github.com/mbrit/moqrt的实验性分支

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...