I am attempting to create a C++/CLR class project and I wanted to know how would you test the class code that you wrote if there is no entry point (i.e) there is no main ? I am using VS2010 ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The usual way is to use a unit testing framework such as xunit or nunit.
Xunit seems to the most popular nowadays …
http://xunit.codeplex.com/
This will give you a GUI to run unit tests or if you prefer, you can run tests from the command line.