Great, I got your patch and it worked, at least with Gallio.Echo, I can now run the tests like this (if Typemock and Gallio are in path).
>TMockRunner Gallio.Echo.exe UnitTests.dll
Note: you should not use the -first argument since it's intended to work when linking the Isolator with some other profiler.
Thanks, I guessed that, but without -first the Gallio.Icarus throws the following while loading tests:
A fatal exception occurred while exploring tests. Possible causes include invalid test runner parameters.
Gallio.Runtime.RuntimeException: Could not resolve instance of component 'MbUnit.TestFramework'. ---> Gallio.Runtime.RuntimeException: Could not resolve the component handler of component 'MbUnit.TestFramework'. ---> Gallio.Runtime.RuntimeException: Could not resolve the component type of component 'MbUnit.TestFramework'. ---> Gallio.Common.Reflection.ReflectionResolveException: Could not resolve type 'MbUnit.Core.MbUnitTestFramework, MbUnit'. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName)
at Gallio.Common.Reflection.TypeName.Resolve()
--- End of inner exception stack trace ---
at Gallio.Common.Reflection.TypeName.Resolve()
at Gallio.Runtime.Extensibility.ComponentDescriptor.ResolveComponentType()
--- End of inner exception stack trace ---
at Gallio.Runtime.Extensibility.ComponentDescriptor.ResolveComponentType()
at Gallio.Runtime.Extensibility.ComponentDescriptor.ResolveComponentHandler()
--- End of inner exception stack trace ---
at Gallio.Runtime.Extensibility.ComponentDescriptor.ResolveComponentHandler()
at Gallio.Runtime.Extensibility.ComponentDescriptor.ResolveComponent()
--- End of inner exception stack trace ---
at Gallio.Runtime.Extensibility.ComponentDescriptor.ResolveComponent()
at Gallio.Runtime.Extensibility.ComponentHandle`2.<GetComponent>b__0()
at Gallio.Common.Memoizer`1.Memoize(Func`1 populator)
at Gallio.Runtime.Extensibility.ComponentHandle`2.GetComponent()
at Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.ForEachDriver[T](MultiMap`2 testFrameworkPartitions, Func`4 func)
at Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.ExploreImpl(ITestIsolationContext testIsolationContext, TestPackage testPackage, TestExplorationOptions testExplorationOptions, IMessageSink messageSink, IProgressMonitor progressMonitor)
at Gallio.Model.BaseTestDriver.Explore(ITestIsolationContext testIsolationContext, TestPackage testPackage, TestExplorationOptions testExplorationOptions, IMessageSink messageSink, IProgressMonitor progressMonitor)
at Gallio.Runner.DefaultTestRunner.Explore(TestPackage testPackage, TestExplorationOptions testExplorationOptions, IProgressMonitor progressMonitor)
Prior to applying the patch you sent me, Gallio.Echo was having just the same problem.