Question

I have a visual studio 2010 solution (.Net3.5) that used Microsoft Moles for testing, I opened it in Visual Studio 2012 and I was able to build it, however I cannot run the tests from Visual Studio. The reason for this is that the Moles host adapter is not registered in vs2012. So all test methods with [HostType("Moles")] fail to run with the following exception:

Message: UTA034: CreateSite_MockProperties_Passes has invalid HostType attribute. A valid, registered host type must be specified.

Has anyone figured out how to register the Host adapter in Visual Studio 2012?

Was it helpful?

Solution

Its looking more optimistic for fans of the Moles framework. As we know, its successor "Fakes and Stubs" was only available in VS2012 Ultimate SKU.

However Microsoft just announced that as of VS2012 Update 2, Premium SKU users will be able to use Fakes and Stubs. I'm happy with that!!

http://blogs.msdn.com/b/bharry/archive/2013/01/30/announcing-visual-studio-2012-update-2-vs2012-2.aspx

OTHER TIPS

We have to figure out how to install that Host adapter in Visual Studio 2012!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top