My amazingly talented co-worker Dan Esparza showed me the Object Test Bench in VS2008 which I never knew about until today. Looks like a productive tool:
If you want to test an object and invoke its methods then you can instantiate a class directly from the VS2008 IDE and call its methods.
- Open the Class View in your project and right click on a class and select Create Instance... and then select the constructor from the sub-menu (there'll only be one option if you don't have a constructor or a single constructor).
- The Object Test Bench window will open and the instantiated object will be in that window.
- Right click the object and select a method to invoke on it.
- If you have a break-point on the object then execution will stop there and you can inspect the values etc.
The only oddity I've seen so far is that it will only work on class in the start-up project. More info here...