c# Unit Test: Writing to Settings in unit test does not save values in user.config
- by HorstWalter
I am running a c# unit test (VS 2008). Within the test I do write to the settings, which should result in saving the data to the user.config.
Settings.Default.X = "History"; // X is string
Settings.Default.Save();
But this simply does not create the file (I have crosschecked under "C:\Documents and Settings\HW\Local Settings\Application Data").
If I create the same stuff as a Console application, there is no problem persisting the data (same code).
Is there something special I need to consider doing this in a UnitTest?