I am getting exception
Could not load file or assembly 'TypeMock, Version=0.0.0.0, Culture=neutral, PublicKeyToken=0000000000000000' or one of its dependencies. The system cannot find the file specified.
after the first call to the Class under test.
I am not using Nunit, just a quick mock up to look at typemock.
LinkedProfile...out file shows
Logging program: C:Documents and SettingsXXXXXDesktopTest.ClassLibraryTest.ConsoleApplicationinDebugTest.ConsoleApplication.vshost.exe
Cannot read EnvName0 => The system cannot find the file specified.
ResetCLSID is empty
Adding typemock profiler
Loaded C:Program FilesTypeMockTypeMock.NETMockWeaver.dll
Target Runtime .NET 2.0
Initialize Profiler 0, Target Runtime .NET 2.0
Code examples:
public void test4()
{
ClassUnderTest t = new ClassUnderTest();
using (RecordExpectations recorder = RecorderManager.StartRecording())
{
ClassToBeMocked.RunStatic(); <<< Exception raised here <<<
}
t.runStatic();
}
public void test1()
{
MockManager.Init();
Mock mock = MockManager.Mock(typeof(ClassToBeMocked));
mock.ExpectCall("RunSimple");
ClassUnderTest classUnderTest = new ClassUnderTest(); <<< Exceptino raised here <<<
classUnderTest.runSimple();
}