From Gerard Meszaros - http://xunitpatterns.com/Test%20Double%20Patterns.html.
Name | Description |
Dummy | Empty implementation. Not called or don’t care if it is |
Stub | Canned replies - “snapshot in time” |
Spy | Watches and Records |
Fake | Partial Simulator |
Mock | Has & Validates expectations |
Saboteur | Designed to always fail, e.g., always throws an exception. |
Comments