Click here to Skip to main content
15,885,790 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,
I Develop MFC applications frequently ,a coding wise my flow goes correct but problem arises when i deal with testing perspective.

That is,
I want to test each and every part of my software coding wise or editor wise.

Like,

in coding wise

a below line of code may gives me assertion ,
C++
CStringArray strTest;
strTest.RemoveAll();
strTest.ElementAt(0);

Gives me assertion

so is there any tool,methods or a steps to avoid such things.
Posted
Comments
Richard MacCutchan 29-Sep-11 6:28am    
You could start by not writing meaningless code. Seriously, what are you expecting from the above 3 lines?

1 solution

Avoiding what? "Avoiding assertions" and "testing each and every part" of your software are the opposites.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900