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
Hi,
I am working on Windows XP with Visual Studio 2010 with SP1. I was using TypeMock Isolator 7.0.0 successfully within Visual Studio with MS test. Then I uninstalled TypeMock Isolator 7.0.0 and checked if any file related with typemock remains in documents and files folder. There was none. I installed TypeMock Isolator 7.4.3.0 and have seen that Isolator Essential successfully installed on my computer. I can see TypeMock in Visual Studio toolbar and enabled test with 3rd party application option. I tried to run your example(about mocking showdialog function) so I created a VS test project with .NET version 4, gave reference to Typemock and Typemock C# dlls. And within test class I pasted your example. I successfully build VS test project and tried to run test method by selecting it from VS test view window. For a while test is shown as running but then in the VS test results window it is shown as result that test "not executed". when I clicked on the test result, a dialog with Microsoft Visual Studio caption says that "The test has not been executed." Then I erased code within test method and just wrote "Assert.AreEqual(true, true)" and ran the test again but I again got the result as test not executed. When I disabled test with 3rd party application option, I was able to ran the test and the result was passed. How can I successfully run tests within Visual Studio 2010 with Typemock version 7.4.3.0?
Thank you.
asked by mkg (24.3k points)

2 Answers

0 votes
Hi,

I have a guess why it happened but I need you to check on 2 things :
  • Try run the tests with typemock smart-runner and check if it still has the same effect ("not executed").
  • Try using TMockRunner which is a command-line tool which allows you to run tests with typemock runner outside Visual Studio, that will allow us to bypass VS component.


The easiest way to use it is like this :
Run Visual Studio cmd as Administrator -> copy <TMockRunner Path> mstest.exe /testcontainer: <DLL Path>
<TMockRunner Path> is usually : "C:\Program Files (x86)\Typemock\Isolator\7.4\AutoDeploy\TMockRunner.exe"
<DLL Path> can be for example : "C:\Program Files (x86)\Typemock\Isolator\7.4\Examples\GeneralExamples\CS\bin\Debug\Typemock.Examples.CSharp.dll"

You can find more info about TMockRunner at our documentation.

Looking forward for your feedback.
answered by Shai Barak (1.5k points)
0 votes
Hi,

Did it work for you ?
Let me know if you need additional info.
answered by Shai Barak (1.5k points)
...