Mocking C++/CLI function with pointer parameters

4 posts, 1 answers
  1. David
    David avatar
    2 posts
    Member since:
    Apr 2015

    Posted 07 May 2015 Link to this post

    Hi Telerik team,

     

    Is it possible to use Mock.Arrange to mock a C++/CLI function that has parameters which are pointers to native C++ structs? Function prototype would be similar to the following:

    int foo(NativeStruct1* param1, NativeStruct2* param2)

     

    Best Regards,

    David

     

  2. Answer
    Stefan
    Admin
    Stefan avatar
    198 posts

    Posted 12 May 2015 Link to this post

    Hi David,

    No, JustMock does not support most interop-related types like pointers, TypedReference and __arglist. It has been on our laundry list of features for quite some time now, but it has never been asked for and so we never prioritized it.

    I've added a feature request to our feedback portal. I'd like to ask you to vote for it, so we may prioritize it in one of our future releases.

    Regards,
    Stefan
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. DevCraft R3 2016 release webinar banner
  4. David
    David avatar
    2 posts
    Member since:
    Apr 2015

    Posted 14 May 2015 in reply to Stefan Link to this post

    Hi Stefan,

    Thank you for the confirmation. I have voted for this feature.

    Best Regards,

    David

     

  5. Stefan
    Admin
    Stefan avatar
    198 posts

    Posted 15 May 2015 Link to this post

    Hi David,

    Thank you for your engagement. You can further track the development of the feature by observing the status of the feedback item.

    Regards,
    Stefan
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top