Search The Blog
About this site

@RoyOsherove

Subscribe!

This site aims to connect all the dots of my online activities - from tools, books blogs and twitter accounts, to upcoming conferences, engagements and user group talks.

from 5whys.com
Twitter: @RoyOsherove
My Book: The Art of Unit Testing
Latest Posts
« Nice little gmail trick | Main | Typemock Isolator 4.2 Beta released with cool new features (Previously Typemock.NET) »
Monday
Feb042008

Mock vs. MockObject + Typemock Blog: Tips, Tricks and important things to know

There is now an official Typemock blog over at http://typemock.blogspot.com (and the direct RSS feed) that will host posts from the developers of Typemock(myself included) about any of these topics:

  • Be a direct open channel to developers (other than the forums)
  • upcoming and current product news
  • explanations of various "hidden" features
  • Explaining various concepts that Typemock uses
  • Talking about various unit testing concepts

The first post if by Lior Friedman, explaining the difference between two API methods that sound a lot alike:

  1. MockManager.Mock
  2. MockManager.MockObject

The main difference in a nutshell? MockManager.Mock is for mocking Future object instances (that will be created later and maybe out of our control), while MockManager.MockObject will create an instance then and there (just like you'd do it with typemock). Read Lior's full post for a better explanation.

Yes. I realize that the naming sucks. Not for long. If you have good suggestions for renaming these methods, do me a favor and leave a comment on the new blog. We'd love to hear it.

PrintView Printer Friendly Version

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>