I am transitioning to unit testing of Visual-Studio 2008, and I am wondering what is the best way to cross-build a class for testing.
Basically, I have two projects in one solution:
- MyProject (C #)
- MyProjectTests (C # Testing Project)
Everything in MyProject currently has default access, which, if I remember correctly, means that everything is effectively internal . I mainly try to test the class level, but there are several delegates .
There will probably be an external API in the future, but I will be about 20% of how you can complete the full one (at least on paper), and I get quite a few questions laying over more code on top of this unchecked kernel. Accordingly, I would like to conduct some testing before the application is sufficiently complete for the traditional (read: bad and / or lazy) functional testing and, of course, before the release of the external API version n + 1.
In addition to the direct answer, an example solution would be very helpful.
c # .net-assembly unit-testing
Kevin Montrose Jul 31 '09 at 9:59 2009-07-31 09:59
source share