Hello:
I am brand new to all testing technology under .NET. I am evaluating Isolator with NUnit.
I am very impressed by the capabilities of Isolator. The documentation and sample projects are excellent. I am confident that this technology will make it possible for us to fully test our code base in an automated way, even though the code was written without regard to testability.
Unfortunately, I cannot get Isolator to run without crashing the NUnit test runner. I am able to run other NUnit-based tests that don't use Isolator, such as the test examples from "The Art of Unit Testing".
Here are the details:
My development PC is running Windows 7 Professional 64-bit. I'm using Visual Studio 2008 Professional SP1. My code under test is an X86 application written in C# targeting .NET Framework 3.5 SP1. The code under test ultimately runs on 32-bit Windows 7, but during development it has to run on my 64-bit machine.
My test project is also configured as x86. It references the nunit.framework dll for NUnit 2.5.10, and the TypeMock and TypeMock.ArrangeActAssert dlls for Isolator 6.1.
I have read the Isolator.NET help topic "64 bit machines". I have run corflags.exe to set every executable in the NUnit bin directory to 32-bit. It wasn't clear from the help topic if this step was also required for tmockrunner.exe. I've tried it both ways.
From a DOS command prompt, if I run
nunit-console-x86.exe BPT.Tests.dll
it complains that Typemock isolator is not enabled, as expected.
If I run
tmockrunner nunit-console.exe BPT.Tests.dll
nunit immediately throws a System.BadImageFormatException. I guess that is expected, too.
If I run
tmockrunner nunit-console-x86.exe BPT.Tests.dll
nunit launches and crashes, with the Windows "NUnit-Console has stopped working" system dialog. Here is the console output that came out before the crash:
C:Users crewsDocumentsBPTCommonSoftware runkCodeBPTinBryan Debug>tmockrunner nunit-console-x86.exe BPT.Tests
.dll
Typemock Isolator Enterprise License - Maintenance will expire in 8 day(s)
BPT.Tests.dll
NUnit version 2.5.10.11092
Copyright (C) 2002-2009 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.
Runtime Environment -
OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1
CLR Version: 2.0.50727.5448 ( Net 2.0 )
ProcessModel: Default DomainUsage: Single
Execution Runtime: Default
Is there any other way to see more detailed diagnostic information? Have I missed a newbie configuration step?
Thank you for any help you can provide,
Tim Crews
Senior Staff Engineer
GECO, Inc.