When I run unit test from ReSharper
my AppDomain.CurrentDomain.SetupInformation
have path: C:\Users\%USERNAME%\AppData\Local\Temp\hwa3yebt.mas\<project>.config
(IIS temp dictionary)
and it doesn't work and throws System.IO.FileNotFoundException
becouse can not find configuration file.
Configuration file has Copy to output directory : Copy always (I'm not sure if this is required)
but when I run unit test from Visual Studio test explorer AppDomain.CurrentDomain.SetupInformation
have path : C:/Repository/<project>/bin/debug
and it works.
What I should do to run ReSharper
unit tests?
Check Resharper runs UnitTest from different location
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With