Click here to Skip to main content
15,120,478 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For Example:

Consider a abstract class implementing an interface

public abstract class ClassA : IClassA
{
protected abstract string Method();
}

So how can I mock Method() using MOQ mocking framework.

Please help!!!!
Posted

1 solution

How about reading discussions on the MOQ discussion forum (Google Group) that deal specifically with Abstract Classes: [^].

And, then, consider posting a message to that group ? Of course, I would never under-estimate the possibility of someone on CodeProject showing up soon with righteous answer.
   
Comments
Member 12266619 16-Jan-16 6:12am
   
Yep will try that also..

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