Why does visual studio 2012 not find my tests?

后端 未结 30 3233
盖世英雄少女心
盖世英雄少女心 2020-12-07 10:51

I have some tests that use the built in Microsoft.VisualStudio.TestTools.UnitTesting, but can not get them to run.

I am using visual studio 2012 ultimat

30条回答
  •  眼角桃花
    2020-12-07 11:25

    Check referenced assemblies for any assemblies that may have "Copy Local" set to "False".

    If your test project builds to it's own folder (bin/Debug for example) and the project depends on another assembly and one of those assemblies in the References list is marked Copy Local = "False", the assembly cannot load due to missing dependencies and your tests will not load after a build.

提交回复
热议问题