The most challenging part of test-driven development is dealing with dependencies. Typically, we end up creating mocks and stubs to isolate the behavior we would like to test. When we create all these testing classes by hand, it can get out of hand quickly -- sometimes developers duplicate these classes, and other times the mocks and stubs become more complicated than the code they're trying to test in the first place. Thankfully, we have several open source tools that can help ease the pain; frameworks like Rhino Mocks and Moq allow us to create mocks and stubs within our test method. While these tools do have a learning curve, we'll go over techniques that can ease you into these frameworks, and soon hand-rolling a mock or stub won't be your only option.
Presented by Michael Kramer
(webinar from July 28, 2010)
The stream recording was a bit jumpy at times, but great material. Thanks for sharing!
StuListon 9 months ago