Wrap-Up

When you look at the result, nobody would seriously consider to deliver this piece of software. Many more tests would follow along with their implementation. And heavy refactoring would be in all likelyhood part of the further work.

However, this tutorial covered several important principles of test-driven development using a simple calculator class and csUnit as the unit testing framework.

  1. Always write your tests first.
  2. A test consists of three major parts: a) set up required object(s), b) manipulate the object(s), and c) assert outcome.
  3. Implement as little as possible, keep it as simple as possible, sometimes even simplistic.
  4. Run your tests frequently.
  5. Test only one bit of functionality at a time.

What Next?

As next steps it probably would make sense to experiment a little with what you learned from this tutorial.

After that, you may also want to look at the other available tutorials.

Happy Testing!


Back to Step 5 "Running Your Tests And Fixing A Failure"

Goto Start

Home

Download

Documentation

Features

Tutorials

Support

Suggest A Feature

Report A Bug

About



Web csunit.org

Sponsors:

Extreme Simplicity Logo

Agile Utilities Logo

Blue Note Ventures Logo


Sources hosted by
Get csUnit - unit testing for .NET at SourceForge.net. Fast, secure and Free Open Source software downloads



Copyright © 2002-2008 by Agile Utilities NZ Ltd. All rights reserved. Site design by Andreas Weiss. This site is protected by bot traps.