Groups
Groups
Sign in
Groups
Groups
Moq Discussions
Conversations
About
Send feedback
Help
Mocking for abstract class
301 views
Skip to first unread message
Michael Sync
unread,
Nov 3, 2009, 1:04:29 AM
11/3/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
11/3/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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