Step 2: Loading Your Project And Adding The Reference To csUnitLaunch 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!) 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"
|
Sponsors:
|
||||||
Copyright © 2002-2008 by Agile Utilities NZ Ltd. All rights reserved. Site design by Andreas Weiss. This site is protected by bot traps. |