nunit测试中的RxApp初始化错误

时间:2014-06-18 20:58:00

标签: .net nunit reactiveui

我正在尝试运行使用ReactiveUI对象的NUnit测试。

对于新测试,我一直得到以下异常

System.TypeInitializationException : The type initializer for 'ReactiveUI.RxApp' threw an exception.
 ----> System.TypeLoadException : Could not load type 'ReactiveUI.IActivationForViewFetcher' from assembly 'ReactiveUI, Version=5.4.0.0, Culture=neutral, PublicKeyToken=null'.

使用ReactiveUI工作的同一程序集中的其他测试。我不知道为什么会出现这个错误

2 个答案:

答案 0 :(得分:3)

我遇到了这个问题,升级到ReactiveUI 6后就消失了。

答案 1 :(得分:0)

此测试是否有效?您是否在不同的测试中覆盖服务定位器并且可能没有重置它?

相关问题