Need a work around Microsoft.QualityTools.Testing.Fakes

TechLiam picture TechLiam · Jan 2, 2015 · Viewed 15.2k times · Source

We been getting this on are most up to date systems VS 12 update 4 we have tried setting specific version to false and still get the test failing with this message

Product.Business.Test.Providers.AuthenticationProvider.GivenRequestToStoreAuthenticationState_WhenParametersAreValid.ThenItShouldStoreTheAuthenticationState 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)

can anybody save us from this fake calamity

Answer

Stef Heyenrath picture Stef Heyenrath · Jan 8, 2015

This solved it for me:

  • deleting the bin, obj and FakesAssemblies folder
  • make sure the specific version for the Microsoft.QualityTools.Testing.Fakes assembly is set to 'false'
  • rebuild the test project