I upgraded to version 3.1.
When I run TMockRunner.exe there is an exception
Unhandled Exception: System.IO.FileNotFoundException: File or assembly name Configuration, or one of its dependencies, w
as not found.
File name: "Configuration"
at b.a(String[] A_0)
=== Pre-bind state information ===
LOG: DisplayName = Configuration, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = C:Program FilesTypeMock.NETTypeMock.NET
LOG: Initial PrivatePath = NULL
Calling assembly : TMockRunner, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: Configuration, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null
LOG: Attempting download of new URL file:///C:/Program Files/TypeMock.NET/TypeMock.NET/Configuration.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/TypeMock.NET/TypeMock.NET/Configuration/Configuration.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/TypeMock.NET/TypeMock.NET/Configuration.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/TypeMock.NET/TypeMock.NET/Configuration/Configuration.EXE.
I took a copy of TypeMockTracer.exe.config and named it TMockRunner.exe.config. That contains the probing path and correct the problem.
-
I was actually trying to run a test with .net 2.0. TMockRunner does not seem to accept the "-target" parameter.
On the commandline it returns the usage instructions and does not execute any tests.
"C:Program FilesTypeMock.NETTypeMock.NETTMockrunner" -target 2.0 TestRunner.exe TestBlob.dll
If the target is not given it works as expected.
"C:Program FilesTypeMock.NETTypeMock.NETTMockrunner" TestRunner.exe TestBlob.dll
In the manual there is an example with a differently name parameter "-NETVersion". That did not work either.
Am I using it wrong?
Colin