1 / 16

Automated Unit Testing in Visual Studio 2005

Automated Unit Testing in Visual Studio 2005. David O’Hara david@davidohara.net http://blog.davidohara.net/. How do you test?. How we test. Which would you rather use?. What are we talking about?. AUT != TDD “If it's worth building, it's worth testing.” - Scott Ambler.

Download Presentation

Automated Unit Testing in Visual Studio 2005

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Automated Unit Testing in Visual Studio 2005 David O’Hara david@davidohara.net http://blog.davidohara.net/

  2. How do you test?

  3. How we test Which would you rather use?

  4. What are we talking about? AUT != TDD “If it's worth building, it's worth testing.” - Scott Ambler

  5. Why we don’t test • Not my job • Not enough time • Too hard

  6. Unit Testing Frameworks • NUnit • http://nunit.com/ • MbUnit • http://mbunit.com/ • MSUnit • http://tinyurl.com/2nqzqj/

  7. Test Runners • TestDriven.Net • http://testdriven.net/ • Zanebug • http://adapdev.com/zanebug/ • Resharper • http://jetbrains.com/resharper/

  8. Am I done?

  9. Project Setup

  10. Bowling game Demo

  11. Reality of Testability

  12. Dependency Injection

  13. The Problem

  14. Mock Frameworks • Nunit.Mocks • http://nunit.org/ • Rhino.Mocks • http://ayende.com/products/rhino-mocks.aspx • NMock • http://nmock.org/ • TypeMock • http://typemock.com/

  15. Purchase System Demo

  16. Conclusion • Testing is worth the effort and time • Practice, practice, practice • Dependency Injection separates out hard stuff • Mocks and stubs are your friends

More Related