Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-469364: System.MissingMethodException when running xunit tests that use Moq

$
0
0
Reporter Lauri Kotilainen (offbeatlauri) Lauri Kotilainen (offbeatlauri)
Created Apr 21, 2018 2:01:34 PM
Updated Apr 21, 2018 2:01:34 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions

I'm running tests with ReSharper 2018.1. The platform is .NET 4.5.2 x64. I'm getting MissingMethodException when Moq tries to access Castle.Core when setting up mocks. From the Modules view of the debugger, I'm seeing that the version of Castle.Core in play comes from

C:\Users<username>AppData\Local\JetBrains\Installations\ReSharperPlatformVs15_19653e68_001\Castle.Core.dll

The file version of that assembly is 4.0.0 and assembly version is 4.0.0.0.
The version Moq ships with is file 4.2.1, assembly 4.0.0.0. Because of the identical assembly version, I'm pretty sure binding redirects don't work either.

See also: GitHub issue


Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>