---
title: "Using TypeMock vs. Design for testability"
url: "https://osherove.com/blog/2006/9/27/using-typemock-vs-design-for-testability.md"
canonical: "https://osherove.com/blog/2006/9/27/using-typemock-vs-design-for-testability.html"
published: "2006-09-27T10:17:16"
updated: "2006-09-27T10:17:16"
tags: ["Agile", "Art Of Unit Testing"]
author: "Roy Osherove"
description: "Eli Lopian, the Israeli guy who is now running TypeMock - one of the most powerful Mocking frameworks out there for.NET developers, opened a blog . I personally know the guy and he is a brilliant coder and architect -…"
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/"
---

# Using TypeMock vs. Design for testability

By Roy Osherove September 27, 2006 In [Agile](https://osherove.com/blog/category/agile), [Art Of Unit Testing](https://osherove.com/blog/category/art-of-unit-testing)

**Historical article** · Originally published September 27, 2006; technical details may be outdated.

Eli Lopian, the Israeli guy who is now running [TypeMock](http://www.typemock.com/) - one of the most powerful Mocking frameworks out there for.NET developers, [opened a blog](http://www.elilopian.com/). I personally know the guy and he is a brilliant coder and architect - so it's worth listening to what he has to say.

For example. [in this post he lists resources for and against using TypeMock](http://elilopian.com/2006/09/26/typemocknet-and-designing-for-testability.aspx#Comment)  because of the design issues you can run into - you don't have to design for testability if you use it - you just intercept all calls to objects(even static ones) when you test. it's really quite scary and too easy - does not make you think at all.

I'm from the "Design for testability" side. Eli is not - and he always has interesting arguments. He even wrote a rather [controversial article on codeproject](http://www.codeproject.com/useritems/StopDesign4Tests.asp) talking about this issue. Read it to get both sides.

## Lessons on this topic

- [Isolation Frameworks](https://courses.osherove.com/courses/the-art-of-unit-testing-and-tdd-master-class-in-net/isolation-frameworks/) · The Art of Unit Testing & TDD Master Class in .NET
- [Mocking On The Edge](https://courses.osherove.com/courses/the-art-of-unit-testing-and-tdd-master-class-in-net/mocking-on-the-edge/) · The Art of Unit Testing & TDD Master Class in .NET
- [Testing Legacy Code with Typemock Isolator Deep Dive](https://courses.osherove.com/courses/the-art-of-unit-testing-and-tdd-master-class-in-net/testing-legacy-code-with-typemock-isolator-deep-dive/) · The Art of Unit Testing & TDD Master Class in .NET
- [Working with Typemock Isolator](https://courses.osherove.com/courses/tdd-in-net-in-hebrew/working-with-typemock-isolator/) · TDD in .NET in Hebrew

## More in Agile

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

- Oct 3, 2006

    ### [Avoid multiple asserts in a single unit test: revisited](https://osherove.com/blog/2006/10/3/avoid-multiple-asserts-in-a-single-unit-test-revisited.html)

- Oct 2, 2006

    ### [My sessions at TechEd Europe 2006](https://osherove.com/blog/2006/10/2/my-sessions-at-teched-europe-2006.html)

- Sep 25, 2006

    ### [The future of unit testing tools - MbUnit, NUnit, NMock and FIT](https://osherove.com/blog/2006/9/25/the-future-of-unit-testing-tools-mbunit-nunit-nmock-and-fit.html)

- Sep 24, 2006

    ### [Continuous integration with Team System and Team Foundation Server](https://osherove.com/blog/2006/9/24/continuous-integration-with-team-system-and-team-foundation.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/
