home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 32,809 of 33,346   
   Richard to All   
   Re: Unit Testing Frameworks (was Re: Sin   
   22 Jan 13 22:32:59   
   
   From: legalize+jeeves@mail.xmission.com   
      
   [Please do not mail me a copy of your followup]   
      
   Ian Collins  spake the secret code   
    thusly:   
      
   >Tobias Müller wrote:   
   >> That's the point exactly. With DI you make clear which parts of the   
   >> environment you are actually using.   
   >   
   >Maybe, but setting up a mock to enable a test should also make it   
   >clear.   
      
   It does.  The problem with link-time substitution is that I can't take   
   one piece of code and make it use the link-time substitute and have   
   another piece of code that uses the real thing and have them both live   
   in the same executable.  By using link-time substitution, I'm forced   
   into having more test executables than I need.  If I use DI, then it's   
   all under control fo the test and not the *linker*.   
   --   
   "The Direct3D Graphics Pipeline" free book    
        The Computer Graphics Museum    
            The Terminals Wiki    
     Legalize Adulthood! (my blog)    
      
      
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca