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
I'm using the following command:
"C:Program FilesTypeMockTypeMock.NETmocking_on.bat"

Followed by:
"C:Program FilesNCoverNCover.Console.exe" //w "C:<myCodePath>in est" //v //a <myAssembly> "C:Program FilesNUnit 2.2.8in unit-console.exe
" <myAssembly>

Yet, I'm still getting this message:
TypeMock.TypeMockException :
*** TypeMock.NET is not enabled, to enable do one of the following:...

Any help is appreciated.

Scott C.
asked by scottctr (2.4k points)

4 Answers

0 votes
Hi Scott
You should link ncover with TypeMock.
To do that go to:
START -> programs -> TypemOck.NET -> TypeMock Configuration
Choose ncover from the drop down list.
Press "Link with TypeMock"
Run your tests.

:idea:
If you are linking coverage tool with TypeMock the way I described above you don't need to call mocking_on.bat

Hope it helps.
answered by ohad (35.4k points)
0 votes
Sorry, I should have mentioned that I'm using the free edition of 3.6.1.
answered by scottctr (2.4k points)
0 votes
Hi Scott
Since you are a registered user you can use the demo licence you got from us.
This will enable you run with coverage.

By the way another option to run with coverage tool is to use TMockRunner.exe with the -link option.
Example:

C:<TypeMockPath>TMockRunner.exe -link NCover C:<NcoverPath>
cover.console //a <myAssembly> "C:Program FilesNUnit 2.2.8in
unit-console.exe" <myAssembly> 
answered by ohad (35.4k points)
0 votes
HI,
Perhaps I Should explain.
Code Coverage with TypeMock is a Professional Feature.
To try this out, please use the Demo license sent with the registration to this site.
answered by scott (32k points)
...