Hi,
I have a question on unit-testing..
The design for a complex application with a large number of classes has just been completed. Which of the following is the BEST approach for unit-testing the classes? (One answer)
a)Use the package diagrams to group classes logically and perform unit-testing on a package-by-package basis.
b)Use activity diagrams to identify parallel behavior and
test classes that use threads.
c)Use the interaction diagrams to step through the interactions between the classes and perform visual inspection of the code to identify discrepancies
d)Use the class diagram to ensure that the classes have been correctly coded and perform unit-testing for each class association and for each class
From 'UML distilled', I think the answer would be (a) - ie. on a package-by-package basis.
But, I do have some doubts it could be (d) too.
Please express your comments on this.
Thanks.