-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
Mocking classes doesn`t work #773
Comments
What does the class that you're trying to mock look like?
At first glance, that assembly version looks suspicious. Do you have any assembly binding redirects configured for |
Yep, confirmed: Castle.Core 4.3.1 has an assembly version of 4.0.0.0 and your project is trying to load 1.0.3.0, so it appears to be misconfigured (e.g. with a bad assembly reference in your However that may be, there's nothing wrong with Moq, so I'll close this issue. |
Got this in my csproj.
My App.config is plain new and doesn`t have any binding redirect. The issue still occurs. |
stop
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
…________________________________
From: qbunia <notifications@github.com>
Sent: Tuesday, March 5, 2019 11:04:23 PM
To: moq/moq4
Cc: Subscribed
Subject: Re: [moq/moq4] Mocking classes doesn`t work (#773)
Got this in my csproj.
<Reference Include="Castle.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
<HintPath>..\packages\Castle.Core.4.3.1\lib\net45\Castle.Core.dll</HintPath>
</Reference>
My App.config is plain new and doesn`t have any binding redirect. The issue still occurs.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#773 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ANa6sKGWKJSdTmvoEY5TXtlwRoXKSyfYks5vTtvXgaJpZM4beqsq>.
|
I cannot mock class because I got follow errors:
Moq: 4.10.1
CastleCore 4.3.1
The text was updated successfully, but these errors were encountered: