|
-
May 11th, 2013, 01:42 PM
#9
Re: Unit-testing functions with user-defined types
 Originally Posted by Igor Vartanov
Man, it seems you don't listen. Not any code can be unit tested. If you can't mock the type you have to mock, you either change your code or switch to a smarter unit test framework.
In your situation it would be really stupid to mock such complex types like boost or comdef types, as the effort hardly worth the result. So you have to either redesign your interfaces or give up.
Once again, not any code can be unit tested. Unit testing is just a requirement that can or cannot be met. If you have to unit-test, your code has to be designed appropriately.
No, I am listening, but I do need more information to have a good and correct argument for debates of what I should follow. All code in my library is not really hard, only the user-defined types used as arguments that are spead thru-out the dlls and unit-tests I need to write are messy and overwhelming.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|