Executing individual classes

Hi everybody,

I am developing an c# web application . I am quite new to VS IDE. Is there any option to execute and test the individual c# classes without running it in browser ie., can i test the individual classes in the IDE itself

Thanks in advance,

T. Jayakumar




Answer this question

Executing individual classes

  • Peter McEvoy

    If you are running the Standard edition of Visual Studio 2005 or higher you might want to try using the new Object Test Bench feature.

  • slyi

    how exactly do you mean test each class the only way really to test the classes is to test it using a testing tool, such as perhaps nunit or something, or even doing runs of your own, testing the inputs and boundry limits etc...

  • gafferuk

    Hi,

    Thanks for all your reply.

    I want do the unit test in component level. For simplicity, i like to test the component functions by creating a main function in the method. Is it psble to execute or run the static main method from the IDE.

    I am Using VS 2003, does object test feature available in VS 2003

    with regards,

    T. Jayakumar



  • edsela

    Under 2003 you say... In that case the Object Test Bench isn't available to you and instead I would suggest you look into NUnit which alows you to create unit tests quite granularly and then execute any combination of them.

  • Executing individual classes