State versus Interaction Testing

Mocking frameworks allow you to stub out behavior to perform tests of individual pieces of functionality. However, there are times when performing certain actions and assert a result is not sufficient. This video drills deep into unit testing and explains the differences between state and interaction–based testing. We will examine the role of stubs versus mocks and how to correctly write unit tests that are not fragile or counter–productive.

Watch this streaming video from the Norwegian Developer Conference 2010