Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
Hi,

I have to automate my already existing (production) application, which is implemented using Visual Studio 2010.

I am looking for some free (open source) Mocking tool which supports for Non Virtual members, b'coz my application does not have any virtual members and I can't change my application logic, I am trying with MOQ mocking tool, but it does not support non-virtual members.

Thanks in Advance!
Suma
Posted
Comments
Bernhard Hiller 31-Oct-14 3:16am    
No, you can do that with Moq. That tool can mock quite any type which can be instantiated. Or did you think of *static* properties/functions/classes?
suma_sarur 31-Oct-14 4:42am    
MOQ not allowing me to mock non-virtual method.
If it is possible to mock non-virtual methods, can you please share some sample code.
Tomas Takac 31-Oct-14 9:34am    
suma_sarur 3-Nov-14 2:17am    
HI, Thanks for ur reply.

I think Microsoft Fakes works only with VS 2012 onward, but my application is developed using Visual studio 2010.

I heard about Microsoft Moles supports VS 2010,
Can you please let me know is Moles is free version or licensed ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900