This TestConnectionStringRetrieval unit test (committed by me some months
ago) succeeds for me in a clean checkout, but I don't understand why it
fails in the buildbot, so let's place some sanity check in it.
The ConnectionStrings property of System.Configuration.ConfigurationManager
works perfectly, so this MonoTODO is not needed.
A unit test is also added to demonstrate that it's fully working and to
prevent it failing in the future.
* Configuration.Save() and SaveAs() now honors the
`ConfigurationSaveMode' argument.
* Check whether the file has been modified prior to saving.
* Fix ConfigurationUserLevel inheritance.
* Implement ConfigurationElement.IsModified().
* New ConfigurationSaveTest.cs test:
- load a custom section using different parent configuration
files using ExeConfigurationFileMap and different
ConfigurationUserLevel values.
- save configuration using different ConfigurationSaveMode
arguments and different inherited parent configurations.
* ExeConfigurationFileMapTest.cs: Add error checks for missing
required filenames.
* New TestUtil.cs helper class:
- RunWithTempFile() and RunWithTempFiles() helper functions.
- DotNetVersion, ThisDllName and ThisConfigFileName properties,
moving all the #ifdef's into one central place.
OpenExeConfiguration. Enabled tests that were previously failed.
* ClientConfigurationSystem.cs: Moved logic for defaulting to
configuration file of AppDomain to OpenExeConfigurationInternal.
* ConfigurationManager.cs (OpenExeConfigurationInternal):
Allow calling_assembly and exePath to be null. When userLevel is None,
default to configuration file of AppDomain if exePath is null or empty.
When exePath is specified, resolve it to absolute path and throw
ConfigurationErrorsException if exePath does not exist and add
.config extension to get config file name if exePath does exist.
svn path=/trunk/mcs/; revision=107080
* ProviderBaseTest.cs: Added tests for Initialize.
* ProviderBase.cs: Remove "description" key from NameValueCollection.
Use provider name as description if description is null or a zero
length string. Modifies exception messages to match MS.
* GenericEnumConverterTest.cs: Remove unused variable.
* ConfigurationManagerTest.cs: Fixed line endings.
* ConnectionStringSettingsTest.cs: Fixed line endings and avoid
ToString override warning.
* KeyValueConfigurationElementTest.cs: Fixed line endings.
* KeyValueConfigurationCollectionTest.cs: Fixed line endings.
svn path=/trunk/mcs/; revision=85126
* ConfigurationManager.cs : in OpenExeConfiguration() and
OpenMappedExeConfiguration(), take userLevel into consideration.
* InternalConfigurationHost.cs : consider ConfigurationUserLevel and
use correct config map file in InitForConfiguration().
* ConfigurationManagerTest.cs : Enabled some tests with related to
roaming user config. Marked some tests for negative check as
[NotWorking] (they are rather uncovered bugs than enbug).
svn path=/trunk/mcs/; revision=80335
* ConfigurationManager.cs : OpenExeConfiguration(null) should still
work. This is required for embedded scenario.
* ConfigurationManagerTest.cs :
OpenExeConfiguration(null) should be allowed.
svn path=/trunk/mcs/; revision=62342
* Configuration.cs : configPath is null for machine.config, so don't
use it. Use streamName instead. To my understanding, this should
fix bug #78372.
* ConfigurationManagerTest.cs :
added test for OpenMachineConfiguration().
svn path=/trunk/mcs/; revision=60616
* Makefile : add -r:System.Configuration under net_2_0.
* ConfigurationSettings.cs : use ConfigurationManager.GetConfig()
in its GetConfig(). No need to change AppSettings and
Default.GetConfig() behavior here.
* t35.cs, t35.exe.config, t35.exe.expected :
new test, largely from bug #78337.
* ConfigurationManagerTest.cs :
added GetSectionReturnsNativeObject().
* ConfigurationElement.cs,
DefaultSection.cs :
in some cases RawXml was set null string, so skip such cases.
* Configuration.cs : support IConfigurationSectionHandler here.
* ConfigurationManager.cs : GetSection() now returns name value
collection, not a section.
* ConfigurationSection.cs : added SectionHandler for
IConfigurationSectionHandler support, and use its Create() in
GetRuntimeObject().
* ClientConfigurationSystem.cs :
use GetRuntimeObject() in GetSection(). Thus now
ConfigurationManager.GetSection() returns a runtime object.
Fixed bug #78337.
svn path=/trunk/mcs/; revision=60483