Linq to Mocks - How to add behavior later?

20 views
Skip to first unread message

Charles Ritchea

unread,
Jan 31, 2014, 3:03:30 PM1/31/14
to moq...@googlegroups.com
Using the imperative style, I have a Mocked object that has behavior common to all my unit tests to keep things DRY, so I just do Setup, Returns in the base class and Setup, Returns for any test specific behavior in the child class.
How do I do this with the declarative style. I can easily setup the common behavior using declarative style, but as far as I can tell, I have to use Mocks.Get, Setup, Returns for any additional behavior I want?
Reply all
Reply to author
Forward
0 new messages