I like the explanation put out by Roy Osherove in his talk Understanding Mock Objects:
Every class or object created is a fake. It is a mock if you assert against it. Otherwise it is a stub.
I like the explanation put out by Roy Osherove in his talk Understanding Mock Objects:
Every class or object created is a fake. It is a mock if you assert against it. Otherwise it is a stub.