[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2201
  • Last Modified:

Test fails with unable to find Microsoft.QualityTools.Testing.Fakes

I'm using Visual Studio Premium 2013 and some tests are failing with this message:

Test Name:      My test:      
Test Source:      My test:
Test Outcome:      Failed
Test Duration:      0:00:00.1262976

Result Message:      
Test method MyTest  threw exception:
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.QualityTools.Testing.Fakes, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Result StackTrace:      
at MyTestMethod()
   at ... etc

The project reference is to version 12, I don't have version 11 installed - I can't find anywhere that is telling it to look for version 11 - any ideas why it would be looking for version 11 and causing this error?
0
purplesoup
Asked:
purplesoup
1 Solution
 
Chris MillardCommented:
I'm not familiar with this error, but someone at this thread http://stackoverflow.com/questions/27741115/need-a-work-around-microsoft-qualitytools-testing-fakes suggests:-

Re-referencing the test assembly and recreating the Fakes assembly sorted the issue for me.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now