I have the following dependency tree
- MyFramework
- DataAccess
- Processor
- Processor.Tests
Each assembly references on all of the ones above it. So Processor.Tests references Processor, DataAccess, and MyFramework. With the exception of ProcessorTests reference to Processor all references are through a private Nuget server.
There is an interface (IMessageLogger) in the DataAccess assemble that I need to mock. One of the methods in that interfaces has an argument of a type defined in MyFramework.
When I try to Mock.Create<IMessageLogger>()
I get the following exception
System.IO.FileLoadException : Could not load file or assembly 'MyFramework, Version=2017.12.12.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
None of my assemblies are strong named, but Telerik.JustMock is strong named, but it hasn't given me any trouble mocking any other interfaces so far.
Anyone have any idea how I might be able to work around this?