RhinoMocks - Mocking Protected virtual members
Posted
by Dave Smith
on Stack Overflow
See other posts from Stack Overflow
or by Dave Smith
Published on 2010-06-16T21:47:09Z
Indexed on
2010/06/16
21:52 UTC
Read the original article
Hit count: 280
mocking
|rhino-mocks
As far as I know, RM should mock anything that can be accessed by a derived class. Since a protected virtual member is accessible from a subclass, shouldn't it be mockable?
My understanding is that RM does not support mocking protected virtual members.
© Stack Overflow or respective owner