---
title: "Test Review #3 – Unity"
url: "https://osherove.com/blog/2009/3/23/test-review-3-unity.md"
canonical: "https://osherove.com/blog/2009/3/23/test-review-3-unity.html"
published: "2009-03-22T23:58:55"
updated: "2009-03-22T23:58:55"
tags: [".NET", "Agile", "Art Of Unit Testing", "TestReview", "Testing Guidelines", "Unit Testing"]
author: "Roy Osherove"
description: "Watch previous videos: Test Review #1 – NerdDinner Test Review #2 – ASP.NET MVC //TestReviewUnity.mp4 In this video I go over the tests for Microsoft Unity Application Block. Overall the quality of the tests in Unity is…"
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/"
---

# Test Review \#3 – Unity

By Roy Osherove March 22, 2009 In [.NET](https://osherove.com/blog/category/net), [Agile](https://osherove.com/blog/category/agile), [Art Of Unit Testing](https://osherove.com/blog/category/art-of-unit-testing), [TestReview](https://osherove.com/blog/category/testreview), [Testing Guidelines](https://osherove.com/blog/category/testing-guidelines), [Unit Testing](https://osherove.com/blog/category/unit-testing)

**Historical article** · Originally published March 22, 2009; technical details may be outdated.

**Watch previous videos:**

- [Test Review #1 – NerdDinner](http://weblogs.asp.net/rosherove/archive/2009/03/20/test-review-1-nerddinner.aspx)
- [Test Review #2 – ASP.NET MVC](http://weblogs.asp.net/rosherove/archive/2009/03/21/test-review-2-asp-net-mvc-unit-tests.aspx)

//TestReviewUnity.mp4

In this video I go over the tests for Microsoft Unity Application Block.

Overall the quality of the tests in Unity is pretty good! I could certainly recommend that people look at them as examples of a bunch of tests against a framework, which are mostly very readable and maintainable.

**Things I walk through:**

- Using \[Ignore\]
- exploration testing
- magic numbers and strings
- un-needed asserts
- Stub hard coded behavior
- handling config files in tests
- Asserts hidden in a utility method
- more naming conventions
- Separating integration tests
- “smart” code that is less readable
- Meaningless “isNotNull” tests
- cleaner ways of expecting exceptions

## Lessons on this topic

- [Unity Test Review](https://courses.osherove.com/courses/the-art-of-unit-testing-and-tdd-master-class-in-net/unity-test-review/) · The Art of Unit Testing & TDD Master Class in .NET
- [Unit Testing Best Practices](https://courses.osherove.com/courses/tdd-in-net-in-hebrew/unit-testing-best-practices/) · TDD in .NET in Hebrew

## More in .NET

[All posts in .NET](https://osherove.com/blog/category/net)

- Apr 2, 2009

    ### [Preview: Placeholder arguments and custom argument checkers](https://osherove.com/blog/2009/4/2/preview-placeholder-arguments-and-custom-argument-checkers.html)

- Mar 24, 2009

    ### [Geeky T-Shirt ideas](https://osherove.com/blog/2009/3/24/geeky-t-shirt-ideas.html)

- Mar 21, 2009

    ### [Test Review #2 – ASP.NET MVC Unit Tests](https://osherove.com/blog/2009/3/21/test-review-2-aspnet-mvc-unit-tests.html)

- Mar 20, 2009

    ### [Test Review #1 - NerdDinner](https://osherove.com/blog/2009/3/20/test-review-1-nerddinner.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/
