我无法在新的Microsoft Fake Framework中测试来自AccountController的任何注销、登录和注册操作,而不会收到这样的错误消息: System.Security.VerificationException:操作可能会破坏运行时的稳定性。单元测试非常简单: public void LogOff() var AccountController = new AccountControllerAs
我有一个带有静态方法的非静态类,我想对它进行压缩。constructor things public static void MyMethod(string str) //do something}
这个静态方法是从我想测试的代码(MyClass.MyMethod(“一些字符串”)中调用的),但是我<