Error when trying to mock Microsoft.ServiceFabric.Services.Client with the following code:
using Microsoft.ServiceFabric.Services.Client;
[Fact]
public void Foo() {
var spr = Mock.Create<ServicePartitionResolver>();
}
When I run this simple test I got:
Message:
System.TypeLoadException : Could not load type 'System.Runtime.Remoting.Proxies.RealProxy' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Stack Trace:
MocksRepository.Create(Type type, MockCreationSettings settings)
<>c__38`1.<Create>b__38_0()
ProfilerInterceptor.GuardInternal[T](Func`1 guardedAction)
Mock.Create[T]()