Isolating Dependencies in Unit Tests Using Mocks and Stubs 5.0 http://spkr8.com/t/1479

Description:

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.

Comments on this Talk

Missing pjack, 28 Sep 01:46 AM

I find that there are two reasons I select a topic at a tech fest. Either I have zero experience with the topic and am looking for an introduction to it, or I have been working with the topic a while and need confirmation that the way I'm doing it in my practice is correct. Saw your presentation on TDD at HTF in January and on Mocks and Stubs at HTF in September.

I sat in both of these presentations at that critical time when I'd been practicing the technique you were covering, but was not yet proficient enough at it to be more "productive" in development than in the old way. You confirmed that I was on the right track and taught me several new things to aid in gaining the productivity and proficiency that I needed.

Thank you, -Phillip

Missing cmorris, 28 Sep 01:19 PM

This presentation was phenomenal. I have been playing with mocks and stubs for the last couple of months. I didn't really know what I was doing, but this presentation has given me some guidance on where to head next. Thank you!

Missing purwedy, 28 Sep 02:04 PM

great presentation by giving rule of thumb to differentiate mock and stub. your info about typemock will give me a light a bit on TDDing Dynamics CRM which leave me in the dark place.

Edy Purwoko

Stream bfloyd, 28 Sep 10:46 PM

Second best presentation I saw all day (SOLID was best just because of my needs as a developer). I have just switched my mocking framework from NMock2 to RhinoMocks based on the extension methods and lambda expression support for strongly typed calls. Thanks!

Sailingsfbay lprigmore, 13 Oct 02:02 PM

Thanks again, you did a great job again. I'm a little late on the rating but you improved my approach to testing during this presentation.

Have an account? Sign in.

Leave a Comment

Remember to keep it constructive! Identify strengths and areas for improvement, and make suggestions!

6 Ratings: 5.00

Delivery: 5.00

Content: 5.00

Your Rating: 2.5

I'll Rate It! I was there.

Last Five Ratings