Step 2: Loading Your Project And Adding The Reference To csUnit

Launch Visual Studio and load the solution containing your project.

In order to use members of the csUnit namespace you need to add a reference to the csUnit assembly to your project.

In the solution explorer bring up the context menu for your project, and select "Add Reference...". The dialog box will look similar to the following, and the interesting one is named "csUnit". (The version will very likely to look different on you system, though!)

Add Reference dialog

Select "csUnit" and click "OK". This will add a reference to csUnit to your project.

For simplicity reasons we will have both code and tests in one assembly. Normally, you would put code and tests in two different assemblies. This is also what I would do.

Goto Step 3 "Writing The First Test"

Back to Start








Suggest A Feature

Report A Bug




Extreme Simplicity Logo

Agile Utilities Logo

Blue Note Ventures Logo

Sources hosted by
Get csUnit - unit testing for .NET at 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.