==SOLVED==
Unlinking Typemock in the Isolator Configuration solved it. I didn't use the profiler/code coverage anyway
The Typemock Test Navigator crashes with an "internal error while running tests." (error output below).
- I use Typemock Isolator 7 with MStest.
- My test do run in the Test Explorer included with Visual Studio 2012.
- I am referencing Typemock and TypeMock.ArrangeActAssert in the test-project
Error output:
TestRunner Error: Lost communication with TestRunner process.
TestRunner Error: Lost communication with TestRunner process.
System.ServiceModel.CommunicationException: There was an error reading from the pipe: Unrecognized error 109 (0x6d). ---> System.IO.PipeException: There was an error reading from the pipe: Unrecognized error 109 (0x6d).
at System.ServiceModel.Channels.PipeConnection.FinishSyncRead(Boolean traceExceptionsAsErrors)
at System.ServiceModel.Channels.PipeConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
--- End of inner exception stack trace ---
Server stack trace:
at System.ServiceModel.Channels.PipeConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
at System.ServiceModel.Channels.DelegatingConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
at System.ServiceModel.Channels.SessionConnectionReader.Receive(TimeSpan timeout)
at System.ServiceModel.Channels.SynchronizedMessageSource.Receive(TimeSpan timeout)
at System.ServiceModel.Channels.TransportDuplexSessionChannel.Receive(TimeSpan timeout)
at System.ServiceModel.Channels.TransportDuplexSessionChannel.TryReceive(TimeSpan timeout, Message& message)
at System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Typemock.Common.Core.ITestRunnerService.RunTests(List`1 assemblies, List`1 testNames, String sessionID, Dictionary`2 testsOptions, List`1 path2TestSettings)
at Typemock.Common.Core.TestRunnerServiceSynched.RunTests(List`1 assemblies, List`1 testNames, String sessionID, Dictionary`2 testsOptions, List`1 path2TestSettings)
at Typemock.Common.Core.DaemonNUnitRunner.<>c__DisplayClass9.<TryRunTests>b__1()
TestRunner Error: TestRunner crashed trying to run test: DocuDesign.Backoffice.Presentation.Tests.DocumentPresenterTests.DeleteDocument_OnSelectedDocumentIdNOTNULL_CallsDeleteDocumentOnDocumentTaskWithDocumentId
My test-class looks like this:
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TypeMock.ArrangeActAssert;
[TestClass]
public class DocumentPresenterTests
{
private IDocumentTask fakeDocumentTask;
private DocumentPresenter documentPresenter;
[TestInitialize]
public void TestInitialize()
{
fakeDocumentTask = Isolate.Fake.Instance<DocumentTask>();
documentPresenter = new DocumentPresenter(fakeDocumentTask);
}
[TestMethod, Isolated]
public void DeleteDocument_OnSelectedDocumentIdNOTNULL_DeletesDocumentWithCorrectId()
{
...
}
}