Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbols for Moq 4.7.8 #338

Closed
kichalla opened this issue Apr 9, 2017 · 1 comment
Closed

Symbols for Moq 4.7.8 #338

kichalla opened this issue Apr 9, 2017 · 1 comment

Comments

@kichalla
Copy link

kichalla commented Apr 9, 2017

Question: Where can I find the symbols for Moq 4.7.8?

We are hitting an issue while running tests in net46 with the following error and I am trying to see for which type this error is being thrown:

      System.ArgumentException : Interface not found.
      Stack Trace:
           at System.RuntimeTypeHandle.VerifyInterfaceIsImplemented(RuntimeTypeHandle handle, RuntimeTypeHandle interfaceHandle)
           at System.RuntimeType.GetInterfaceMap(Type ifaceType)
           at Moq.Extensions.IsGetObjectDataVirtual(Type typeToMock)
           at Moq.Extensions.IsSerializableMockable(Type typeToMock)
           at Moq.SerializableTypesValueProvider.ProvideDefault(MethodInfo member)
           at Moq.Mock.GetInitialValue(IDefaultValueProvider valueProvider, Stack`1 mockedTypesStack, PropertyInfo property)
           at Moq.Mock.SetupAllProperties(Mock mock, Stack`1 mockedTypesStack)
           at Moq.Mock.<>c__DisplayClass72_0.<SetupAllProperties>b__0()
           at Moq.PexProtector.Invoke(Action action)
           at Moq.Mock.SetupAllProperties(Mock mock)
           at Moq.Mock`1.SetupAllProperties()
           at Moq.Mocks.<CreateMocks>d__6`1.MoveNext()
           at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
           at Moq.Linq.MockQueryable`1.Execute[TResult](Expression expression)
           at Moq.Mock.Of[T]()

Just FYI:
Repro: var httpContext = Mock.Of<HttpContext>();

Type: https://github.com/aspnet/HttpAbstractions/blob/dev/src/Microsoft.AspNetCore.Http.Abstractions/HttpContext.cs#L16

@kichalla
Copy link
Author

kichalla commented Apr 9, 2017

Ignore this. I was able to build the source successfully from Visual Studio. (before filing this issue I did try building from source, but it was from command line and which failed)

@kichalla kichalla closed this as completed Apr 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant