Marcin Deptuła
Marcin Deptuła

Reputation: 11957

Error while running VS tests

I've bumped into a very strange problem lately with my friend while using unit test framework in Visual Studio 2010. We have created TestProject (let's call it NoTitleTests) that references few libraries ("casual" and "xna" dlls) and it works without any problem.
But when we added NoTitle project (which is a XNA game) to references, when we launch our units tests, VS comes up with error window:

"This interface is not supported. 
(Exception from HRESULT:0x80004002 (E_NOINTERFACE))"

(may differ a bit on english Windows, I've translated).

Funny thing is, that we got this error even if our unit test project contains zero tests. It compiles fine (as no code is in project, it would be hard to not compile :-) ).

Upvotes: 1

Views: 315

Answers (1)

seventy2eleven
seventy2eleven

Reputation: 96

Hey, a bit late, but maybe it helps others :-? ran into the same problem a couple of minutes ago.

Remove all references from your test project that reference projects containing game content.

see > http://forums.create.msdn.com/forums/p/63814/63814.aspx

cu, mm72

Upvotes: 2

Related Questions