Hi,
I'm facing the following problem atm:
I have a project with Unit Tests. I added into the project app.config file with test settings:
<?xml version="1.0" encoding="utf-8"?><configuration> <configSections> <section name="WebAii.Settings" type="ArtOfTest.WebAii.Core.SettingsConfigSectionHandler, ArtOfTest.WebAii, Version=2015.1.528.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c"/> <section name="WebAii.Settings.Wpf" type="ArtOfTest.WebAii.Core.Settings.WpfSettings, ArtOfTest.WebAii, Version=2015.1.528.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c"/> </configSections> <WebAii.Settings elementWaitTimeout="10001" xMultiMgr="false" unexpectedDialogAction="HandleAndFailTest" createLogFile="true" waitCheckInterval="500" logAnnotations="false" annotationMode="All" annotateExecution="true" executionDelay="0" queryEventLogErrorsOnExit="false" clientReadyTimeout="20000" executionTimeout="30000" > </WebAii.Settings> <WebAii.Settings.Wpf DefaultApplicationPath="D:\SVN\...\Client.exe"> </WebAii.Settings.Wpf></configuration>When I build my project, the .dll.config file is created in the project bin folder.
Then I want to get the settings in the code:
MyManager = new Manager(true);MyManager.Start();WpfClientApp = MyManager.LaunchNewApplication(MyManager.Settings.Wpf.DefaultApplicationPath);The problem is that the settings are not taken from the file but they have default values.
Do you have any idea what it happens? Did I miss sth?
BR, Marta