When using the ServiceModel assembly while trying to fake a SOAP service I get the error below that prompts me to load the Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.pdb.
Error copied to the clipboard is as follows:
Message=Common Language Runtime detected an invalid program.
at System.ServiceModel.ServiceHost..ctor(Object singletonInstance, Uri baseAddresses)
at Microsoft.VisualStudio.TestPlatform.TestExecutor.TestExecutorMain.Run(String args)
After it goes into this failure state, I have to then remove my reference to the ServiceModel assembly from the project and its corresponding fake just to get any of my other non-fake tests to run. This failure completely corrupts the test project until the reference is deleted and recompliled.