CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10

Threaded View

  1. #7
    Join Date
    Jun 2012
    Posts
    38

    Re: Unit-testing functions with user-defined types

    Thank you Paul. It was just an example of the situation I am in right now.

    The requirement we have right now is to upgrade the current library (previous team wrote it). Previous authors didn't include unit-tests in each of the methods they wrote to export as those of Dll's. I am very confused about mock, fake, stub etc because I don't know how to mock a CComPtr type argument that is used in many places in functions in the dlls.
    Could you provide me an simple example of mock a CComPtr (COM pointer type) and type that is user-defined, the more complex, the better ? Thank you.
    Last edited by terminalXXX; May 11th, 2013 at 12:28 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured