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
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
Hello,

I am trying to get started with Isolator and SilverUnit. I am having a problem getting getting it up and running. I have the following code that doesn't even use anything silverlight specific.

[TestFixture]
public class Test
{

[Test, SilverlightUnitTest]
public void Test()
{
Assert.IsTrue(true);
}
}

It does not even get to executing any code but complains about a missing assembly

Test 'M:Tests.Test.TestMethod' failed: Could not load file or assembly 'TypeMock, Version=6.2.4.0, Culture=neutral, PublicKeyToken=3dae460033b8d8e2' or one of its dependencies. The system cannot find the file specified.

The version of TypeMock that I am using is 6.2.5.0. It would seem that the version of CThru.Silverlight needs to match a specific version of TypeMock but I am using the dlls that were included in the Isolator install. I have included the following assemblies:

CThru
CThru.Silverlight
TypeMock
Typemock.ArrangeActAssert

Does anyone know if there are updated CThru dlls anywhere or if I am doing anything wrong?
I have included more detailed error info below

------ Test started: Assembly: FacilityUtilUnitTests.dll ------

Test 'M:Tests.Test.TestMethod' failed: Could not load file or assembly 'TypeMock, Version=6.2.4.0, Culture=neutral, PublicKeyToken=3dae460033b8d8e2' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'TypeMock, Version=6.2.4.0, Culture=neutral, PublicKeyToken=3dae460033b8d8e2' or one of its dependencies. The system cannot find the file specified.
File name: 'TypeMock, Version=6.2.4.0, Culture=neutral, PublicKeyToken=3dae460033b8d8e2'
at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean isDecoratedTargetSecurityTransparent)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, Boolean inherit)
at System.Reflection.RuntimeMethodInfo.GetCustomAttributes(Boolean inherit)
at TestDriven.AdHoc.KnownFrameworkUtilities.FindKnownFramework(MemberInfo method, KnownFramework[] knownFrameworks)
at TestDriven.AdHoc.KnownFrameworkUtilities.FindKnownFramework(MemberInfo method)
at TestDriven.AdHoc.TestRunner.AdHocTestRunner.runAdHoc(ITestListener testListener, String assemblyPath, String cref)
at TestDriven.AdHoc.TestRunner.AdHocTestRunner.Run(ITestListener testListener, String assemblyFile, String cref)
at TestDriven.TestRunner.AdaptorTestRunner.Run(ITestListener testListener, ITraceListener traceListener, String assemblyPath, String testPath)
at TestDriven.TestRunner.ThreadTestRunner.Runner.Run()

Assembly manager loaded from: C:WindowsMicrosoft.NETFramework4.0.30319clr.dll
Running under executable C:Program Files (x86)TestDriven.NET 3ProcessInvocation86.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = DEVELOPMENTsp_farm
LOG: DisplayName = TypeMock, Version=6.2.4.0, Culture=neutral, PublicKeyToken=3dae460033b8d8e2
(Fully-specified)
LOG: Appbase = file:///C:/Users/sp_farm/Documents/Visual Studio 2010/Projects/FacilityUtilUnitTests/bin/Debug
LOG: Initial PrivatePath = NULL
Calling assembly : CThru.Silverlight, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:Userssp_farmDocumentsVisual Studio 2010ProjectsFacilityUtilUnitTestsinDebugFacilityUtilUnitTests.dll.temp.config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:WindowsMicrosoft.NETFramework4.0.30319configmachine.config.
LOG: Post-policy reference: TypeMock, Version=6.2.4.0, Culture=neutral, PublicKeyToken=3dae460033b8d8e2
LOG: Attempting download of new URL file:///C:/Users/sp_farm/Documents/Visual Studio 2010/Projects/FacilityUtilUnitTests/bin/Debug/TypeMock.DLL.
LOG: Attempting download of new URL file:///C:/Users/sp_farm/Documents/Visual Studio 2010/Projects/FacilityUtilUnitTests/bin/Debug/TypeMock/TypeMock.DLL.
LOG: Attempting download of new URL file:///C:/Users/sp_farm/Documents/Visual Studio 2010/Projects/FacilityUtilUnitTests/bin/Debug/TypeMock.EXE.
LOG: Attempting download of new URL file:///C:/Users/sp_farm/Documents/Visual Studio 2010/Projects/FacilityUtilUnitTests/bin/Debug/TypeMock/TypeMock.EXE.

0 passed, 1 failed, 0 skipped, took 6.77 seconds (Ad hoc).
asked by Euge (640 points)

2 Answers

0 votes
Hi,

Indeed it looks like mismatching versions of Isolator and Cthru.dll :(
We will update the references and send you the patch.
answered by ohad (35.4k points)
0 votes
Thank you. In the meantime, I was able to get the source code and build it against the proper dlls.
answered by Euge (640 points)
...