I have a component that reads some configuration from the standard .NET configuration file (app.config).
when I run unit tests (NUnit) for this component (using TD.NET), I noticed that the configuration file is not readable.
After checking AppDomain.CurrentDomain.SetupInformation.ConfigurationFile
I noticed that its value is set to C: \ Users \ ltal \ AppData \ Local \ Temp \ tmp6D2F.tmp (some temporary random localization).
Is there a reason why this is happening? (Is this a NUnit or TD.NET error?)
I believe that I could install this SetupInformation object myself for the test, I have not tried it yet, but still wonder why it is created in this way, and not by default.
source
share