chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
Hi
I've tried to mock some objects from TPL DataFlow library (can found http://www.microsoft.com/downloads/en/details.aspx?FamilyID=0c52d6cd-2104-4983-9932-930b0225e46e)
and get "System.Security.VerificationException: Operation could destabilize the runtime."
for example - this line
var mocked = isolate.Fake.Instance<ActionBlock<int>>();
or - var mocked = Isolate.Fake.Instance<BufferBlock<int>>();
and so on.
Any ideas?
Thanks
Adiel
asked by adiel.sharabi (3.4k points)

1 Answer

0 votes
Hi Adiel,

We need to check this out, I assume the exception is because of changes in the security attributes in .net 4.0
answered by ohad (35.4k points)
...