Mocking for abstract class

301 views
Skip to first unread message

Michael Sync

unread,
Nov 3, 2009, 1:04:29 AM11/3/09
to Moq Discussions
Hello,

I would like to mock the abstract class without creating additional
class. I found other people who like to do it in this link as well
http://stackoverflow.com/questions/243274/best-practice-unit-testing-abstract-classes

Is there any plan to support mocking abstract class from Moq?

Thanks.

Daniel Cazzulino

unread,
Nov 3, 2009, 6:00:19 AM11/3/09
to moq...@googlegroups.com
it is readily supported!!

new Mock<MyAbstractClass>()

;)

/kzu

--
Daniel Cazzulino | Developer Lead | XML MVP | Clarius Consulting | +1 425.329.3471
Reply all
Reply to author
Forward
0 new messages