Friday 17 November 2017

C# shim not working in VS 2015

Go to Test Project.
Delete all files under "Fakes" folder
Remove all Fakes references from "References"

Under reference -->Right click add new reference, browse
Select:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PublicAssemblies\Microsoft.QualityTools.Testing.Fakes.dll
This should be 12.0.0.0

Go to references right click on Dll Select "Add Fakes Assembly"

Now you will see new references with name .Fakes and under "Fakes" folder new files will be added

Now build and run test cases.


It should work fine