RAD Studio (Common)
ContentsIndex
PreviousUpNext
Unit Test Case Wizard

FileNewOtherUnit TestTest Case 

Use this wizard to create a test case for your current project.

Item 
Description 
Source File 
Specifies the path and file name of the code file to which you want to add tests. By default, this textbox is prefilled with the name of the primary code file of the active project. You can change the location and the name of the file to a file other than the default. If the file does not exist, you will be unable to select classes and methods to test and will be unable to complete the wizard. For example, if you add a unit to your project and you want to add test cases to the unit, you must add at least one class to the unit to be able to use this wizard successfully.  
Available Classes and Methods 
Displays a treeview of the available classes and methods for the current file. You can deselect items in the tree. By default, all classes and methods are selected. If you deselect individual methods within a class, the wizard ignores those methods when building test cases. If you deselect the class, the wizard ignores the entire class and all of its methods, even if you do not deselect the methods. If you select a class but do not select any methods in that class, the wizard generates a test case for the class, but does not generate any test methods for that class.  
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!