I get the above message when i try to run any test even though i did run the batch file before
Hi,
The MockInserter must be set on
before you run the tests (This turns TypeMock.NET on) . So if for example you are using the nunit-gui, you must first run
mocking_on.bat and then
nunit-gui.exe (in the same session). Running the gui and then run the batch file, won't work.
The other way to run the tests is by running the tests through
TMockRunner, this is done by typing
TMockRunner nunit-gui <assembly> on the same line, and this will assure that Mocking is enabled. (see
Jump Start)
When running TypeMock tests using a Visual Studio add-in (TestDriven.NET for example) you have to run the Visual Studio
after enabling mocking. This can be done by starting the Visual Studio Command line, running
mocking_on.bat and then running
devenv (see
FAQ). We are currently working on a Visual Studio Addin that will enable turning on the mocking, from within the environment.
I hope that this clears things up, and that you are able to run your tests.