Reputation: 228
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?
Upvotes: 1
Views: 303
Reputation: 1536
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:
Upvotes: 1
Reputation: 4870
You have to delete your moles file for that assembly something like voo.moles and then create a new one.
Upvotes: 0