Maybe I didn't
word this quite as clear as I would have liked to. Unit testing a static method is very easy. Your quite right that this would be no harder than testing a non-static method. However if you were testing a subsystem with something like MockObjects, how might you test a system with static methods in the dependant classes. As you probably know, MockObjects are used to replaced your real dependant objects in your sub system. If these real dependant objects have static methods, how might you still go about testing your sub system?
I did find a product that can help you with this, however I guess I was looking for something that might be open source or free. I did find a product that can do this... that was AgileTest.
http://www.polygenix.com Explaining my point a bit farther.. read my example below...
Example-
You are testing MainClassObject
MainClassObject depends on DependantClassA and DependantClassB.
DependantClassA and DependantClassB both have static methods in them. Using MockObjects, how might you test MainClassObject? Or is there any other testing sub-systems that can help you with this? (Besides AgileTest)
-Dale
[ May 08, 2003: Message edited by: Dale DeMott ]