Had a problem mocking a call to SPWorkflowActivationProperties.Item today. Turns out to be a bug in the TypeMock library. Problematic unit test When executed it throws the following exception: Fix: I can work around this issue by replacing the line: With: See thread on Typemock forum
Posts Tagged ‘typemock’
Typemock: System.NotSupportedException: Cannot dynamically create an instance of System.Void.
Posted in unit testing, tagged typemock, unit testing on April 19, 2010 | Leave a Comment »