I have generated code, with this constructor:
When I mock the GetAll() method of the class (that calls the above constructor), it throws the "JIT Compiler encountered an internal limitation." error:
JustMock version 2012.2.813.9.
If I modify the generated code to use only 8 parameters, it works fine. (I cant really modify the generated code in production)
Ran on another developers computer, same JustMock version, it works fine. (WHY?)
Any ideas as to how and/or why this is happening? I would think JustMock would bypass the internals of GetAll(), ignoring the constructor, but it doesnt seem to be the case (at least on my computer).
Thanks,
Brian
internal
Priority(Int32 priorityId, String name, Int32 rank, Int32 expirationBuffer, Boolean isLiveMicrophone, Boolean isEmergency, Boolean isRepeated, Int32 repeatBuffer, Single levelAdjustment, Boolean isInterruptible, Int32 percentAvailable)
When I mock the GetAll() method of the class (that calls the above constructor), it throws the "JIT Compiler encountered an internal limitation." error:
Mock.Arrange(() => Dvams.Priority.GetAll()).Returns(
new
Dvams.PriorityList());
var p = Dvams.Priority.GetAll();
JustMock version 2012.2.813.9.
If I modify the generated code to use only 8 parameters, it works fine. (I cant really modify the generated code in production)
Ran on another developers computer, same JustMock version, it works fine. (WHY?)
Any ideas as to how and/or why this is happening? I would think JustMock would bypass the internals of GetAll(), ignoring the constructor, but it doesnt seem to be the case (at least on my computer).
Thanks,
Brian