Click here to Skip to main content
12,394,971 members (56,274 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VC6 VC7 VC7.1 VC8.0 C++ MFC VC9.0 , +
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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 3 Oct 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100