Plain C dll is not copied by unit-test-runner

Hi,

I am working on a unit-test (VS2012/MS-Test/ReSharper-TestRunner) to verify a class  accessing a plain C dll (which is a interface to a external program).
I  have added this dll to my project and marked it as "Copy to output  directory : Copy always".
Also I added  the Attribute [DeploymentItem("<my dll>")] to:
[ClassInitialize]
[DeploymentItem("<my dll>")]
MyTestClassInitialize()
{
}

Unfortunately the dll is not copied as expected causing my unit tests to fail.
What is it I am doing wrong?

Regards
Rainer

2 comments

Hi,

What ReSharper version do you use? Please try ReSharper 7.1.3, it should fix this issue: http://www.jetbrains.com/resharper/download/index.html

Please let me know if it helps.
Thanks!

0

Hello Alex,

I use 7.1.3
I found the solution to the issue on one of your Websides : http://devnet.jetbrains.com/docs/DOC-1332

After I had "Use Legacy Runner" disable, my unit-test are running again.

Thanks
Rainer

0

Please sign in to leave a comment.