Video: Typemock Basics - Lesson 1 (Dependency breaking 101)

Jeremy said he didn't see Typemock examples anywhere, so  Here's a short 10 minute screencast I made that shows off some basic features in Typemock, when working with legacy code.

it shows off the two possible syntaxes of working with Typemock: Reflective mocking and "Natural" mocking which is the record replace model you use in Rhino.mocks.  You can see a whole page with examples over here.

the video is here: http://www.typemock.com/Multimedia.html

 

Published Monday, January 21, 2008 5:47 AM by RoyOsherove
Filed under: ,

Comments

# The Case For Typemock - ISerializable - Roy Osherove's Blog

Pingback from  The Case For Typemock - ISerializable - Roy Osherove's Blog

Monday, January 21, 2008 7:59 AM by Jeremy D. Miller

# re: Video: Typemock Basics - Lesson 1 (Dependency breaking 101)

Thanks for the links Roy.  I'll definitely check them out.

Monday, January 21, 2008 1:44 PM by Joey Beninghove

# re: Video: Typemock Basics - Lesson 1 (Dependency breaking 101)

Cool, this is one of the first times I've seen TypeMock in action and I can definitely think of some situations where it would be useful when you are dealing with an existing code-base that wasn't built with testability in mind.  Especially to enable untestable code to be more safely refactored.

Thanks Roy!

Monday, January 21, 2008 7:48 PM by Richard's Rant

# Links for Tuesday 22 Januaary 2008

Came across this article about XBox 360 and failure rates. I just loved this comment:"First, MS

Monday, January 21, 2008 8:16 PM by Greg Long

# re: Video: Typemock Basics - Lesson 1 (Dependency breaking 101)

Cool video.  I've been intending to review TypeMock for a while and this is a nice jumpstart.

Wednesday, January 23, 2008 5:47 AM by Isaiahperumalla

# re: Video: Typemock Basics - Lesson 1 (Dependency breaking 101)

hey thanks for the video

From the example the dependency on Config and Logger is not broken at all, all i saw from the example was how you can use Typemock to side step this tight coupling between the ActionHandler and Logger and ActionHandler and Config, to make your tests pass.

# Screencast and my opinion about TypeMock « How to become a better developer

Pingback from  Screencast and my opinion about TypeMock « How to become a better developer

Thursday, January 24, 2008 6:00 PM by flipdoubt

# re: Video: Typemock Basics - Lesson 1 (Dependency breaking 101)

Nice video, Roy. I'm left with two questions:

1. After running each test, some kind of panel pops up that appears to let you navigate tabs using the keyboard only. No mouse. Is this yet another R# feature?

2. I would like to hear more about which of the features you've demonstrated are available in which version of TypeMock. Obviously, I'm looking to see how far the Community Edition will take me.

Thursday, January 24, 2008 8:41 PM by RoyOsherove

# re: Video: Typemock Basics - Lesson 1 (Dependency breaking 101)

flipdoubt :

The panel I suspect you're seeing is me pressing Ctrl-Tab.  If not, I'm also double clicking on the stack output lines in the output window (the ones that have (line,column) strings like (10,0).

this is a feature of visual studio.

Thursday, January 24, 2008 8:42 PM by RoyOsherove

# re: Video: Typemock Basics - Lesson 1 (Dependency breaking 101)

Also, the community edition will only let you write reflective mocks (the ones with strings). Natural mocks are only available in the pro and enterprise edition.

Here's a feature comparison list:

www.typemock.com/Features.html

Saturday, February 02, 2008 8:11 PM by Dalalmandhi

# re: Video: Typemock Basics - Lesson 1 (Dependency breaking 101)

Are you going to include typemock best preactices more in your unit testing. I already have subscribed for the book and in the early releases it looks like you have not mentioned much about typemock best practices.