FindResources is non virtual method and any interfaces implement it.
Is there any way to mock this method?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check out MS Moles: http://research.microsoft.com/en-us/projects/moles/
This is a free isolation framework that will allow you to mock static methods and other “unmockables”. Typemock isolation framework is also an option, but Moles is free.
This can’t be accomplished with Moq.