Thanks for your help, it helped a lot to find the problem. The clue using the path helped me “see what is happening” and find the troublemaker.
By the way, this fragment
config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal) config.FilePath
It’s useful to find a storage location.
My problem was that I called Reset () before rebooting (). In fact, my test case checks that the objects are stored correctly, so it saves and reloads the settings. I did not know that Reset () “resets and saves to disk” - I assumed that it was only reset in memory. I should only call Reload ().
Since all test cases have their own directory, settings must be created (saved) in the test case.
source share