Completed
Last Updated: 18 Jun 2019 10:06 by ADMIN
Robert
Created on: 28 May 2019 11:54
Type: Bug Report
0
The static constructor of a type disrespects previously created arrangements when triggered by the Telerik.JustMock.PrivateAccessor class

Values from already mocked methods are not taken into account when initializing a static constructor from the Telerik.JustMock.PrivateAccessor class.

Here is an example: PrivateAccessor.ForType(typeof(Foo)).SetField("someStringField", "stringvalue");

A workaround is to call the: Mock.Intercept(typeof(Foo)); before calling the PrivateAccessor.

1 comment
ADMIN
Mihail
Posted on: 18 Jun 2019 10:05
Status update.

The issue is fixed and it will be available with R2 SP1 2019 expected later this week.
 

Regards,
Mihail
Progress 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