This is a migrated thread and some comments may be shown as answers.

Mocking C++/CLI function with pointer parameters

3 Answers 137 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 07 May 2015, 09:23 PM

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

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 12 May 2015, 08:15 AM
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.

 
0
David
Top achievements
Rank 1
answered on 14 May 2015, 06:56 PM

Hi Stefan,

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

Best Regards,

David

 

0
Stefan
Telerik team
answered on 15 May 2015, 07:20 AM
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
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Stefan
Telerik team
David
Top achievements
Rank 1
Share this question
or