---
title: "TDD Course Day 2 – “What I Learned Today”"
url: "https://osherove.com/blog/2009/8/25/tdd-course-day-2-what-i-learned-today.md"
canonical: "https://osherove.com/blog/2009/8/25/tdd-course-day-2-what-i-learned-today.html"
published: "2009-08-25T07:42:15"
updated: "2009-08-25T07:42:15"
tags: ["Agile"]
author: "Roy Osherove"
description: "Here’s what people at my course in Norway had to say at the end of the day to the question “Tell me one thing you “got” today “: Lambda expressions (many of the isolation frameworks require heavy use of Lambda…"
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/"
---

# TDD Course Day 2 – “What I Learned Today”

By Roy Osherove August 25, 2009 In [Agile](https://osherove.com/blog/category/agile)

**Historical article** · Originally published August 25, 2009; technical details may be outdated.

Here’s what people at my course in Norway had to say at the end of the day to the question “Tell me one thing you “got” today “:

- Lambda expressions (many of the isolation frameworks require heavy use of Lambda Expressions)
- Stub vs. Mock – the differences
- The different isolation frameworks (Isolator, Rhino Mock, Moq)
- How to Fake methods on classes
- Faking static methods (using Isolator, and refactoring)
- How to fake stuff in general
- Learned i have a lot to learn
- How to use moq
- How to test classes with many dependencies
- Test first actually works! (many felt today that writing the test first was just “automatic” without any thought – and really helped)
- Why good test naming is important (also helps direct you when you are “lost” in the test
- Design by contract removes waiting for other teams in the company

## More in Agile

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

- Aug 31, 2009

    ### [My Videos](https://osherove.com/blog/2009/8/31/my-videos.html)

- Aug 26, 2009

    ### [TDD Master Class Day # 3 – “What I learned today”](https://osherove.com/blog/2009/8/26/tdd-master-class-day-3-what-i-learned-today.html)

- Aug 24, 2009

    ### [One Free Ticket to my UK TDD Master class](https://osherove.com/blog/2009/8/24/one-free-ticket-to-my-uk-tdd-master-class.html)

- Aug 24, 2009

    ### [Benefits of TDD and Pair Programming (Course Day #1)](https://osherove.com/blog/2009/8/24/benefits-of-tdd-and-pair-programming-course-day-1.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/
