Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 ,
CStringArray strTest;
strTest.RemoveAll();
strTest.ElementAt(0);
Gives me assertion
 
so is there any tool,methods or a steps to avoid such things.
Posted 28-Sep-11 23:26pm
Comments
Richard MacCutchan at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 375
1 Abhinav S 333
2 OriginalGriff 330
3 sanket saxena 305
4 CPallini 205
0 Sergey Alexandrovich Kryukov 8,497
1 OriginalGriff 4,850
2 Peter Leow 3,839
3 Maciej Los 3,515
4 Er. Puneet Goel 3,107


Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 3 Oct 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid