Finally I managed to create FinalBuilder 7 Custom Actions like Register TypeMock, Start TypeMock and Stop TypeMock similar to that you distribute in the TypeMock installation.
I let FinalBuilder execute this sequence of actions:
- Register TypeMock (our server license)
- Start TypeMock (Target .NET Framework 2.0)
- Typemock Runner as in my previous reply
- Stop TypeMock
This results in that output:
Errors and Failures:
1) Test Failure : aa.aa.aaaaaa.aaaa.UnitTest.Domain.MessageQueue.TestMessageQueue.Test_04_BlockedQueue_Dequeue
An unexpected exception type was thrown
Expected: aa.aa.aaaaaa.aaaa.Domain.Contract.MessageQueue.MessageQueueBlockedException
but was: TypeMock.TypeMockException :
*** Typemock Isolator is not currently enabled.
To enable do one of the following:
* To run Typemock Isolator as part of an automated process you can:
- run tests via TMockRunner.exe command line tool
- use 'TypeMockStart' tasks for MSBuild or NAnt
* To work with Typemock Isolator inside Visual Studio.NET:
set Tools->Enable Typemock Isolator from within Visual Studio
For more information consult the documentation (see 'Running' topic)
at gx.a()
at gx.c()
at TypeMock.MockManager.Init(Boolean collectAllCalls)
at TypeMock.MockManager.Init()
at TypeMock.MockManager.g(Type A_0)
at TypeMock.MockManager.Mock(Type type, Constructor mockConstructors)
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[TMockedType](Constructor mockConstructors)
at TypeMock.ArrangeActAssert.InstanceFaker`1.e()
at TypeMock.ArrangeActAssert.InstanceFaker`1.c()
at g8.CreateFakeInstance[T](Members behavior, Constructor constructorFlag, Constructor baseConstructorFlag, Type baseType, Object[] ctorArgs)
at g8.Instance[T](Members behavior)
at g8.Instance[T]()
at aa.aa.aaaaaa.aaaa.UnitTest.Domain.MessageQueue.TestMessageQueue.Test_04_BlockedQueue_Dequeue() in d:b runkSWaaaaaaaaTestUnitTestDomainMessageQueueTestMessageQueue.g.cs:line 139
For me the ultimate question remains: What can I do to enable TypeMock ?