Does mole generation skip abstract properties and methods of an abstract class? How to enable that? I cannot use stubs for this task because i need to changesealed methods as well.
Saturday, November 21, 2009 10:39 PM
- Changed type PeliMicrosoft employee, Owner Monday, November 23, 2009 4:02 PM tracking
> Ok. I am curious: Why is that?
The practical explanation is that in our implementation of Moles the actual detouring happens via code injected into the method that is being detoured. (See slide titled "Moles under the hood" in http://research.microsoft.com/en-us/projects/pex/stubsmolespublic.pptx.) Thus, if a method has no body (such as an abstract method), we cannot detour it.
Nikolai Tillmann - Tell us how you use PexMonday, November 23, 2009 6:40 PMOwner