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
0 votes
I am using the latest Typemock version running on Windows 7 64 bit in Visual Studio 2010, .net framework 4.0.
I am using fluentvalidation library version (

I have encountered the following error using the code attached. Prior to upgrading from to 7.2 I did not encounter the error. I am trying to use the 7.2 version as it allows other tests to pass under the recent Microsoft Security patch.

Test method TypemockTestValidation.UnitTest1.ValidateAssetDetail_Should_Throw_Validation_Exception_If_The_Model_Is_Invalid threw exception:
*** Assign Parameter Error, for FluentValidation.ValidationException.BuildErrorMesage
at TypeMock.MockManager.a(Object A_0, String A_1, String A_2, Boolean A_3)
at TypeMock.MockManager.AssignParameter(Object context, String typeName, String methodName, Int32 parameterNumber, Boolean isIntercepted)
at Typemock.Interceptors.Profiler.InternalMockManager.AssignParameter(Object context, String typeName, String methodName, Int32 parameterNumber, Boolean isIntercepted)
at FluentValidation.ValidationException.BuildErrorMesage(IEnumerable`1 errors)
at FluentValidation.ValidationException..ctor(IEnumerable`1 errors)
at TypeMock.MockManager.a(Mock A_0, Type A_1, Object[] A_2)
at TypeMock.MockManager.a(Type A_0, Constructor A_1, Object[] A_2, Boolean A_3)
at TypeMock.MockManager.MockObject(Type type, Constructor mockConstructors, Object[] args)
at TypeMock.MockManager.MockObject(Constructor mockConstructors)
at TypeMock.ArrangeActAssert.InstanceFaker`1.e()
at TypeMock.ArrangeActAssert.InstanceFaker`1.c()
at gx.CreateFakeInstance(Members behavior, Constructor constructorFlag, Constructor baseConstructorFlag, Type baseType, Object[] ctorArgs)
at gx.Instance(Members behavior)
at gx.Instance()
at TypemockTestValidation.UnitTest1.ValidateAssetDetail_Should_Throw_Validation_Exception_If_The_Model_Is_Invalid() in UnitTest1.cs: line 76

Would appreciate your thoughts.


Andrew (Visual Studio 2010, .net framework 4.0)
asked by Andrew.Smith (640 points)

2 Answers

0 votes
Hi Andrew,

We made a new patch that solves some of the problems that that 7.2 had.

You can download the patch here: ... e7.2.1.msi

Please let me know if it helps.
answered by alex (17k points)
0 votes

Typemock 7.2.1 has resolved our issues.


answered by Andrew.Smith (640 points)