I am getting some type errors that appear to have something to do with assembly identity. Here is the test code:
ICandidateScorer ifScorer =
AlphaPredictorScorer scorerAP = (AlphaPredictorScorer)ifScorer;
The Assert.IsInstanceOfType() is failing which the following message:
The cast from ifScorer to scorerAP is failing with the following exception:
[A]Kent.AlphaTrader.AlphaPredictorScorer cannot be cast to
Type A originates from 'AlphaTrader, Version=184.108.40.206, Culture=neutral, PublicKeyToken=null' in the context 'LoadNeither' at location 'C:\Users\kentr\Documents\Projects\Excession\AlphaTrader.UnitTest\bin\Debug\AlphaTrader.dll'.
Type B originates from 'AlphaTrader, Version=220.127.116.11, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Users\kentr\AppData\Local\Temp\Typemock\Excession\Typemock.SmartRunner.Agent.exe\assembly\dl3\2564a603\f408e132_ad89d201\AlphaTrader.dll'.
It appears the the Typemock test runner is modifying the original assembly such that .NET no longer recognizes the types that the code was originally compiled against.
Is there a way to deal with this?