I need to copy some directories / files for MS Unit test, and I have this code.
[TestInitialize()] [DeploymentItem("\\library", "library")] public void Initialize() { .... }
The problem is that the directory / files are not copied using [TestInitialize()] , I needed to use the following:
[TestMethod] [DeploymentItem("\\library", "library")] public void AddInt16() { ... }
Should I use DeploymentItem only with [TestMethod] ? If not, what's wrong with my code?
source share