Tom.... Just as in Java, each class in C# can have a main for unit
testing.
http://www.geocities.com/jeff_louie/OOP/oop5.htm
5) The Visual Studio IDE Startup Object is Empty By Default
If the startup object string is empty and you declare more than one
"Main"
method in a Visual Studio project, the project will not compile. This is
very
frustrating. Trying to set the startup object property in the Visual
Studio IDE
is non-trivial. Let me save you some pain. To set the startup object,
select
View --> Solution Explorer. In the Solution Explorer window select the
name
of the project. Now select View --> Property Pages. (Do not select the
Property Window!) Alternatively, right click on the project name and
select
Properties. Now select the Common Properties folder in the left window.
You
can now select the appropriate startup object from the drop down list.
Don't
forget to click on "Apply."
Regards,
Jeff
I am new to C# and VS.Net. How do I test inidividual classes? I'm used
to
Java where a Main method for every class to test it. However, VS sees
each
Main method as an entry point into the .exe. What is the standard
procedure
for debugging individual classes?<<
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!