by mheydt
7.
July 2009 13:57
>
Listening to Hanselminutes "The Art of Unit Testing with Roy Osherove" and there are a few definitions being discussed that I think are useful to know...
Fakes are objects that look like something but are fake, and can be stubs or mocks depending upon the usage.
Stubs help a test execute, and typically contain "fake" data, used to get a test to run.
Mocks are asserted against to determine if a test has passed. Basically it is a fake object used to make a test to execute. Typically a mock also has behavior instead of just data.
More is discussed in Roy's book
"The Art of Unit Testing", which I have, but have not read yet.
66d007c9-76c6-49b0-acd2-111d4b1b6035|0|.0
Tags:
TDD