类更改后 Moles 不显示新的方法签名
我已经
class Voo
{
private static AnotherClass Doo(int id)
{
//do some stuff with id then return object of AnotherClass
return x[0];
}
}
使用了这个私有的痣
MVoo.DooInt32 = delegate ...
,现在我将方法更改为:
class Voo
{
private static AnotherClass Doo(string a, object b)
{
//do some stuff with a and b then return object of AnotherClass
return x[0];
}
}
但是痣没有给我新的签名。希尔MVoo.DooInt32 但我希望 MVoo.DooStringObject
我删除了痣参考,清理,重建。到目前为止还没有积极的结果。
有什么想法吗?
I had
class Voo
{
private static AnotherClass Doo(int id)
{
//do some stuff with id then return object of AnotherClass
return x[0];
}
}
and used this private with moles
MVoo.DooInt32 = delegate ...
NOW I changed the method to:
class Voo
{
private static AnotherClass Doo(string a, object b)
{
//do some stuff with a and b then return object of AnotherClass
return x[0];
}
}
BUT moles does not give me the new signature. Sill MVoo.DooInt32
but I expect MVoo.DooStringObject
I removed the moles reference, cleaned, rebuilded. No positive result so far.
Any Ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要确保删除鼹鼠程序集文件 (.dll),重建没有鼹鼠类型的测试项目,然后将其添加回来。这个过程很彻底,并且一直对我有用,在这种情况下:
<小时>
You need to be sure to delete the mole assembly file (.dll), rebuild the test project without the mole type, and then add it back in. This process is thorough, and has always worked for me, in this situation:
您必须删除该程序集的 moles 文件(例如 voo.moles),然后创建一个新文件。
You have to delete your moles file for that assembly something like voo.moles and then create a new one.