Attempt to mock a private field via dynamic wrapper results in System.ArgumentException with wrong description
The exception description does not clearly state that there is an issue with the member which is a target of the mocking which could easily lead to confusion. Attached sample project reproducing the issue.
The issue is fixed and it is available with the R1 SP1 2021 version 2021.1.222.1.
Regards,
Mihail
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.