CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Igor Vartanov

Search: Search took 1.19 seconds.

  1. Re: Unit-testing functions with user-defined types

    This is what I told you about, exactly it is: you have to redesign your call interfaces until unit testing becomes easy going and natural.
  2. Re: Unit-testing functions with user-defined types

    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...
  3. Re: Unit-testing functions with user-defined types

    I don't get what you talk about. You test only what you test, you mock everything else. The framework you use ideally helps you to generate mocked interfaces. If it does not, you either find another...
  4. Re: Unit-testing functions with user-defined types

    The main principle is mocking types the tested function depends on.

    With this you may find unit testing almost impossible for a tightly coupled code. :)
Results 1 to 4 of 4





Click Here to Expand Forum to Full Width

Featured