Tag Archives: Moq

Testing with mocks Top Tip – Use fields to help setup tests

Here’s a little technique I’ve picked for keeping my test code nice and clean.  Sometimes you visit a test class and it’s got mocking setup code everywhere.  Each test method setting up the mocks differently to satisfy the precondition of … Continue reading

Posted in Uncategorized | Tagged , | 1 Comment

AutoMocking with Moq

Decided after a bottle of wine the other night that I might have a go at writing an Auto Mocker.  I know of auto mocking containers, but I’m not a big fan of containers in tests.  There’s also some cool … Continue reading

Posted in Uncategorized | Tagged , | 1 Comment