Under Review
Last Updated: 26 Jun 2023 10:30 by Yosi
Yosi
Created on: 26 Jun 2023 09:39
Type: Feature Request
1
Mocked Struct is being changed by other tests

Hi.

i saw this: https://www.telerik.com/forums/how-can-i-mock-multiple-instances-of-a-struct

but still dont understand why JustMock works that way in the first place. why does it union struct mocks by value?

the above solution is only possible when i mock a struct i can change (and then add the id to it) but what about struct's from the framework that i cannot control? Is there a way to tell JustMock not to union mock structs?

Thanks,

Yosi

2 comments
Yosi
Posted on: 26 Jun 2023 10:30
Thanks
ADMIN
Ivo
Posted on: 26 Jun 2023 10:20

Hello Yosi,

I am afraid that the desired functionality is not supported out of the box. Of course, we can consider it for future enhancements, so I am converting this inquiry to a feature request in our Feedback portal. Depending on the outcome of the initial research we will decide whether and when it would be released to the public. Many thanks for your cooperation!

Regards,
Ivo
Progress Telerik

A brand new JustMock course was just added to the Virtual Classroom - the free self-paced technical training portal that gets you up to speed with Telerik and Kendo UI products! Check it out at https://learn.telerik.com.