While working on PR #11829 I stress-tested the tests by running multiple test
runs in parallel, and it turned out that many tests were not parallel-safe,
because they used the same temporary file names and ended up stomping on
eachother.
So I implemented a helper method that creates a guaranteed unique temporary
directory, and I've changed all tests to use this new helper method.
Otherwise we'd get a "directory not empty" exception in the
TestFixtureTearDown (which for some reason isn't shown in the log?).
This was added in https://github.com/mono/mono/pull/6272
They were set in https://github.com/mono/mono/pull/6272 but since
env vars are process wide we'd end up with non-existing paths once
the tests are done. It is safer to unset the variables after the test.
* [System] Add unit test for Xamarin-2315
* [System] Use temporary directory for saving settings files
This change modifies the ApplicationSettingsBaseTests so that they
store the settings files in a temporary directory. This reduces
the risk of failed tests because of stale files from previous test
run, or from a build that runs in parallel.
* [System] Improve Settings behavior (Xamarin-15818)
Improve behavior of ApplicationSettingsBase class to match Windows .NET
more closely.
* Implement Upgrade to allow Upgrading of settings
* Make SettingsPropertyValue serialization work for complex objects
* Make Save and Update throw in unimplemented configurations
* Changed Reload to clear PropertyValues so they are reloaded
and fire PropertyChanged event for all Properties
* Modified Reset to do what Reload used to do.
* Added a backup Type loading for custom SettingsProviders
* don't call SettingsSaving on Reset()
* [System] Fire SettingsSaving event (Xamarin-2315)
When calling ApplicationSettingsBase.Save() the SettingsSaving
event has to be fired.
* [System] Add unit tests for Xamarin-15818
The format of the test assembly name changed in 860334ff45
from System.Web_test_net_4_x.dll to net_4_x_System.Web_test.dll.
This fixes all the places where the old name was used.
NET_4_0 is always defined now, so the ifdefs are redundant.
I verified the libs are exactly the same after this change, so this is effectively a no-op.
* CustomizableFileSettingsProvider.cs: reset the property value
instead of using the DefaultValue.
* SettingsPropertyValue.cs: new Reset() method.
* ApplicationSettingsBase.cs: Reset happens in Reload().
Patch by Andrew Kurochka that fixes bug #532180.
svn path=/trunk/mcs/; revision=140950
* System_test.dll.sources: Added ConfigurationExceptionTest.cs.
* ConfigurationExceptionTest.cs: Removed local bareMessage field, and
use base.Message instead. Fixed default cor to invoke String ctor of
SystemException. Fixed Message property to only add filename if not
null or zero-length string, and only add line if not zero.
svn path=/trunk/mcs/; revision=106582
* SettingsBase.cs : property values are filled only when each
property is accessed. It should not use virtual providers,
properties or context internally since they could be overriden.
* SettingsPropertyValue.cs : to serialize value as string, use
TypeConverter as well (as deserialization).
* SettingsProviderCollection.cs : (Add) null arg check.
* SettingsBaseTest.cs : new test.
* ApplicationSettingsBaseTest.cs : added Providers().
* System_test.dll.sources : added SettingsBaseTest.cs.
svn path=/trunk/mcs/; revision=78181
* ApplicationSettingsBaseTest.cs: Added test case for StringCollection
properties (that encode the string list in XML).
svn path=/trunk/mcs/; revision=67598
* ApplicationSettingsBase.cs : When we use default value, convert it
to proper type. Fixed bug #78654. Patch by Gareth Pearce.
* ApplicationSettingsBaseTest.cs : added test for bug #78654.
svn path=/trunk/mcs/; revision=62136
* SettingsPropertyCollection.cs : implemented some synchronization
releated members. Actually it can never be synchronized by itself.
* SettingsBase.cs : Synchronized() just returns the same instance,
marking it as IsSynchronized = true. Fixed bug #78430.
* LocalFileSettingsProviderTest.cs : commented some lines in
Initialized() as they don't work under .NET.
* ApplicationSettingsBaseTest.cs : added Synchronized(), test for
bug #78430.
* SwitchesTest.cs : Ignore NewSwitch under 2.0 as it fails under
.NET.
svn path=/trunk/mcs/; revision=60792
* System.Configuration/SettingsPropertyValueCollectionTest.cs: new
test.
* System.Configuration/SettingsPropertyCollectionTest.cs: new
test.
* System.Configuration/SettingsPropertyValueTest.cs: new test.
svn path=/trunk/mcs/; revision=50333