If you are using VS 2005 or above, you can use the OTB (Object Test
bench) feature.

http://msdn.microsoft.com/en-us/library/c3775d98(VS.80).aspx

On Oct 7, 3:02 am, alex <[email protected]> wrote:
> I am coming from eclipse world and java.
> In java you have collection of classes and eclipse (IDE) allows you to
> call
> static main() methods of each class seperately (kind of quick test)
>
> now i am working in c sharp and visual studio i figured out that it is
> not really possible to do it -- each
> project has one entry point so it is hard to have this flexibility
>
> effectively is i have
>
> class A { public static void Main() { a = new A(); a.runcode(); }}
> class B { public static void Main() { b = new B(); b.runcode(); }}
> ....
> class Z { public static void Main() { z = new Z(); z.runcode(); }}
>
> I would like to run either an instance of A or instance of B or
> instance of
> something else from IDE for quick testing
>
> how can i retain the ability to run each class in the project
> on its own -- it is great and convenient for quick test of whether
> a class is working and to do bottom line design of the programs
>
> many thanks
>
> alex

Reply via email to