Visual Studio 2012 Professional - unit tests not working

unit-testing, visual-studio, visual-studio-2012

Solution

Ok

I looked again in http://connect.microsoft.com/visualstudio and tried also:

- moving project files to another location than default

- changing security rights in files and folders properties

- run vs as administrator

Nothing really worked until i found by chance vs2012 update 1 (under the "Additional Software" category)

After download and installation everything works fine.

Problem

After building my application I get in the test output: ------ Discover test started ------ Exception has been thrown by the target of an invocation. ========== Discover test finished: 1 found (0:00:01,457) ========== I'm using Visual Studio 2012 Professional on win7 32bit. Tried: - repairing vs2012 - reinstalling vs2012 - changing configurations changing path to ``` Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll ``` Nothing worked... Any ideas? Previously I worked with Visual Studio 2010 Express edition. Application is correct - I made just simple class library and test project just to be sure it works. And it doesn't. The same project works with my student premium version.

Original source