Tag Archives: C#

Moq can’t mock internal methods

Today I was trying to mock a concrete class that had an internal method that I wanted to set the return value for. After much frustration, I discovered that (Google’s) Moq 4.0.10827.0 won’t intercept internal methods. Consider the code below, … Continue reading

Posted in Development, Uncategorized | Tagged | Comments Off on Moq can’t mock internal methods