---
title: "TDD in .NET course - Day 2 Learnings"
url: "https://osherove.com/blog/2011/8/11/tdd-in-net-course-day-2-learnings.md"
canonical: "https://osherove.com/blog/2011/8/11/tdd-in-net-course-day-2-learnings.html"
published: "2011-08-11T14:06:21"
updated: "2011-08-11T14:06:21"
tags: []
author: "Roy Osherove"
description: "Just finished day two od TDD in .NET course here in oslo. here are the list of things we covered today: Test that an even gets fired Understand the boundaries of a unit of work (more than a single method) mocks vs.…"
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 in .NET course - Day 2 Learnings

By Roy Osherove August 11, 2011

**Historical article** · Originally published August 11, 2011; technical details may be outdated.

Just finished day two od TDD in .NET course here in oslo.

here are the list of things we covered today:

- Test that an even gets fired
- Understand the boundaries of a unit of work (more than a single method)
- mocks vs. stubs
- manual mocks and stubs
- Dependency Injection via constructors
- TDD is about removing assumptions from the code one by one
- How to control time in tests
- How to Learn things, and what ravines and plateus are
- Go mouseless inside vs (for the entire day!)
- How to use and not abuse test coverage

## Lessons on this topic

- [Understanding the Problem](https://courses.osherove.com/courses/tdd-pairing-sessions-building-a-go-game/understanding-the-problem/) · TDD Pairing Sessions - Building a Go Game
- [Finding a Winner](https://courses.osherove.com/courses/tdd-pairing-sessions-building-a-go-game/finding-a-winner/) · TDD Pairing Sessions - Building a Go Game
- [Simplicity is Complicated](https://courses.osherove.com/courses/tdd-and-bdd-in-ruby/simplicity-is-complicated/) · TDD and BDD in Ruby


---

## 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/
