How do I include a file needed to perform a test in the context of running Live Unit Testing

0

Good afternoon, everyone.

My unit tests depend on a configuration file to pass. However, when the tests run through Live Unit Testing (LUT) they fail to find such a file.

The LUT currently runs within [...]\.vs\[solução]\lut%code%\t\[projeto]\Debug\netcoreapp2.0 . It does not help to play the file in this folder because it fills up every time the LUT runs.

So how do I include a file needed to perform a test in the context of running Live Unit Testing?

    
asked by anonymous 29.03.2018 / 22:22

1 answer

0

DiegoSantos brought light to the problem. Just change the "Copy to Output Directory" property of the file to "Copy Aways".

Thanks Diego!

    
29.03.2018 / 22:59