【发布时间】:2015-11-30 14:03:03
【问题描述】:
我目前正在尝试设置 Unit 以使用 NUnit 和 Moq 对我们的 ReactiveUI ViewModel 进行单元测试。但是我无法让它工作。我无法将 ReactiveUI 添加到 NUnit 测试库(无法解析依赖项 'Rx-Xaml (≥ 2.2.5)'),也无法将 Moq 添加到 PCL 项目中。
甚至可以使用 NUnit 和 Moq 对 ReactiveUI ViewModel 进行单元测试吗?
顺便说一句:我在 Mac OSX 10.10.5 上使用 Xamarin Studio,但代码在 Windows 10 上运行良好:(
在 OSX 上我得到一个 Unix 传输错误,但在 Windows 上测试确实有效。
【问题讨论】:
-
您的目标框架是什么? cf reactiveui nuspec 我认为您需要定位一个 not 参考 Rx-Xaml
标签: unit-testing xamarin nunit moq reactiveui