views:

851

answers:

5

I would like to learn how to use NUnit. I learn best by reading then playing with real code. Where can I find a small, simple C# project that uses NUnit in an exemplary manner?

+1  A: 

You should find NUnit samples in with the download of NUnit; these are very good examples of how to use NUnit.

McWafflestix
+3  A: 

There are many fine examples on NUnit's developer wiki.

Jekke
Dead links make this choice not so helpful.
msp
+2  A: 

From my own projects (real life, so not just demos where everything will be nice and simple :)

Both are reasonably small, and although MiscUtil is the bigger of the two, it's mostly a collection of very small, individual components.

MoreLINQ is heavily tested; MiscUtil has patchier coverage as I started it before getting into unit testing.

Jon Skeet
+1  A: 

I don't think reading unit tests helps as much as seeing someone writing them and explaining why they are doing the way they are. try some screencasts. DimeCast.Net for example....

Ali Shafai
A: 

I would recommend to watch video on TDD at dnrTV. See Part 1 and Part 2.

Vadim