RajOpteamix / moq

Automatically exported from code.google.com/p/moq
Other
0 stars 0 forks source link

Unit Test Adapter threw exception: Type 'Castle.DynamicProxy.ProxyGenerationException' in assembly 'Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920' is not marked as serializable.. #339

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
Tests passing or failing, only one or two classes do this always the same 
classes.

What version of the product are you using? On what operating system?
Win XP Professional, VS2010 Professional, Moq 4.0.10827.0

Please provide any additional information below.
Unit tests are done in 4.0, rest of the project is on 2.0

Original issue reported on code.google.com by asubhani on 3 Apr 2012 at 5:40

GoogleCodeExporter commented 9 years ago
I was abel to fix this issue, instead of having a test constructor "initialize" 
my mocks, I used a method marked with the TestInitialize attribute.  While it 
may slow down the tests a bit, it removed the error from all tests.

It seemed to only affects large test classes

Original comment by asubhani on 2 May 2012 at 1:51

GoogleCodeExporter commented 9 years ago
Please close this issue.

Original comment by asubhani on 2 May 2012 at 1:51

GoogleCodeExporter commented 9 years ago

Original comment by dan...@cazzulino.com on 2 May 2012 at 2:46