---
title: "Jeremy Miller: Best and Worst Practices for Mock Objects"
url: "https://osherove.com/blog/2006/1/16/jeremy-miller-best-and-worst-practices-for-mock-objects.md"
canonical: "https://osherove.com/blog/2006/1/16/jeremy-miller-best-and-worst-practices-for-mock-objects.html"
published: "2006-01-16T16:58:00"
updated: "2006-01-16T16:58:00"
tags: ["Agile Related", "Testing Guidelines"]
author: "Roy Osherove"
description: "Jeremy Miller writes some of his recommendations for best and worst practices for using Mock Objects in your Unit Tests. He makes a lot of sense and I wholeheartedly agree with his conclusions. His writing is clear and…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Jeremy Miller: Best and Worst Practices for Mock Objects

By Roy Osherove January 16, 2006 In [Agile Related](https://osherove.com/blog/category/agile-related), [Testing Guidelines](https://osherove.com/blog/category/testing-guidelines)

**Historical article** · Originally published January 16, 2006; technical details may be outdated.

[Jeremy Miller writes some of his recommendations](http://codebetter.com/blogs/jeremy.miller/archive/2006/01/10/136407.aspx) for best and worst practices for using Mock Objects in your Unit Tests. He makes a lot of sense and I wholeheartedly agree with his conclusions.

His writing is clear and elegant (not to mention great person stories).

## More in Agile Related

[All posts in Agile Related](https://osherove.com/blog/category/agile-related)

- Jan 22, 2006

    ### [Agile Israel: Advanced TDD Workshop is open for registration](https://osherove.com/blog/2006/1/22/agile-israel-advanced-tdd-workshop-is-open-for-registration.html)

- Jan 22, 2006

    ### [New audio from Agile Israel is available: Johanna Rothman and more!](https://osherove.com/blog/2006/1/22/new-audio-from-agile-israel-is-available-johanna-rothman-and.html)

- Jan 15, 2006

    ### [A solution for easier ASP.NET Unit and GUI testing?](https://osherove.com/blog/2006/1/15/a-solution-for-easier-aspnet-unit-and-gui-testing.html)

- Jan 5, 2006

    ### [Reminder: Agile Israel Meets \*Today\*: Refactoring and Mock Objects](https://osherove.com/blog/2006/1/5/reminder-agile-israel-meets-today-refactoring-and-mock-objec.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
