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 can run it just fine when I'm in debug mode in VS.NET.

If I'm not running in debug mode the test fails on the MockManager.Init() call giving a message that I need to run mocking_on.bat.

So I open command prompt, navigate to the Program FilesTypeMock.NETTypeMock.NET directory, and run mocking_on.bat.

Then I run the NUnit test again and get the same message.

What gives?
asked by randomDeveloper (640 points)

2 Answers

0 votes
I got it all to run through the tmockRunner.exe through the command prompt.
answered by randomDeveloper (640 points)
0 votes
If you are using the NUnit addin you can enable typemock, and run the tests in either debug or release modes.

When running on command line you have to run mocking_on and then nunit in the same command window.

For more information see the documentation and the first topic of the general testing forum
answered by scott (32k points)