Main Content

Isolating Dependencies in Unit Tests Using Mocks and Stubs

About the Talk

September 26, 2009 12:10 PM

University of Houston

University of Houston

Soon after getting used to writing "unit" tests, developers tend to realize that those tests weren't really testing "units"; they were testing way more than that. In order to write real unit tests, it's necessary to use test doubles such as mocks and stubs. This session covers how to create and use those, and how to use Rhino Mocks to simplify things further. As we learn about those things, we'll also learn about the importance of thinking through how we write our code, putting thought into the dependencies that a class may have, and how things should be split up.

Ratings and Recommendations

Avg. Rating

Average based
on 6 ratings

comments powered by Disqus