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.
When using IntegerValidator, if only MinValue is used, max value should
not be set by default to 0. Fix and unit tests included.
This fixes BNC#654721 (https://bugzilla.novell.com/show_bug.cgi?id=654721)
and therefore allows Enyim.Memcached to be used with Mono.
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller. I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.
With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
* ConfigurationElement.cs: don't skip xml nodes when reading 2
ConfigurationElement in a row. Patch by Greg Smolyn that fixes bug
#521231.
svn path=/trunk/mcs/; revision=138142
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
* t46.cs, t46-lib.cs: added test for bug #405574.
* t46.exe.config, t46.exe.config2: config files for t46.
* t46.exe.expected: expected result for t46.
svn path=/trunk/mcs/; revision=107049
* ConfigurationErrorsException.cs : recover from
silly change that tries to prevent debuggin by
decreasing error location information.
* ConfigurationErrorsExceptionTest.cs : mark couple
of tests as [Ignore] that blocks us from decent
implementation in the name of silly .NET compatibility.
Maybe I'll remove more silliness later.
svn path=/trunk/mcs/; revision=106776
GetFilename/GetLineNumber overloads.
* System.Configuration_test.dll.sources: added
ConfigurationErrorsExceptionTest.cs.
* System.Configuration.dll.sources: added ConfigXmlTextReader.cs.
* ConfigurationElement.cs: Use ConfigurationErrorsException instead of
ConfigurationException, and pass reader to ConfigurationErrorsException
ctor to allow for file/linenumber info in exception message.
* ConfigurationErrorsException.cs: Removed local bareMessage field, and
use base.BareMessage field instead. Fixed Message property to only add
filename if not null or zero-length string, and only add line if not
zero. In GetFilename/GetLineNumber overloads, only try to get info if
node/reader implements IConfigErrorInfo.
* ConfigurationSection.cs: Use ConfigXmlTextReader instead of
XmlTextReader to allow for file/linenumber info in exception messages.
* ConfigXmlTextReader.cs: Added XmlTextReader that implements
IConfigErrorInfo.
* ConfigurationLocation.cs: Use ConfigXmlTextReader instead of
XmlTextReader to allow for file/linenumber info in exception messages.
* ClientConfigurationSystem.cs: Perform lazy initialization and
wrap exceptions in ConfigurationErrorsException. Fixes standalone test
t28.
* Configuration.cs: Use ConfigXmlTextReader instead of XmlTextReader
to allow for file/linenumber info in exception messages.
* ConfigInfo.cs: Fixed ThrowException to use file/number info available
in XmlTextReader for exception message.
* AppSettingsSection.cs: Use ConfigXmlTextReader instead of
XmlTextReader to allow for file/linenumber info in exception messages.
* Assert.cs: added.
* Makefile: added Assert.cs, and explicitly specify output file.
* t28.cs: Improved test.
svn path=/trunk/mcs/; revision=106626
* 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
* ConfigurationSectionGroup.cs
Configuration.cs : ConfigurationSectionGroup must be initialized
at least when being added to a collection.
* ConfigurationSectionGroupTest.cs : new (my change is with tests.)
* System.Configuration_test.dll.sources :
added ConfigurationSectionGroupTest.cs.
svn path=/trunk/mcs/; revision=79445
* ConfigurationSectionCollection.cs, ConfigurationSectionGroupCollection.cs,
PropertyInformationCollection.cs, SectionGroupInfo.cs: these collections should be based on case insensitive NameObjectCollectionBase
* added OrdinalComparer.cs for use in NameObjectCollectionBase
* t44.cs: added test for case sensitivity check
svn path=/trunk/mcs/; revision=74361
The above patch for System.Configuration includes a new standalone
test for this bug, and a fix to KeyValueInternalCollection.cs to get
the test to pass.
I think there may be more bugs revealed by the example, this just
fixes the original InvalidCastException.
Fixes bug 79097
svn path=/trunk/mcs/; revision=73784
* ConfigurationElementCollection.cs : fixed BaseAdd() with
throwIfExists to not raise an error for identical element
but for different element which shares the same key. Fix by
Konstantin Triger.
* t38.cs, t38.exe.config, t38.exe.expected : new test for duplicate
element.
* t39.cs, t39.exe.config, t39.exe.expected : new test for identical
element.
* t40.* : similar test to t38 but with Alternate collection.
* t41.* : similar test to t39 but with Alternate collection.
* Makefile : added above.
svn path=/trunk/mcs/; revision=70107
* added: ConfigurationRemoveElement.cs, common element for <remove>
* ConnectionStringSettingsCollection.cs: reverted last fix for <remove> element
* ConfigurationElementCollection.cs: fixed the way that OnDeserializeUnrecognizedElement method handles <remove> element
* t37.cs, t37.exe.config, t37.exe.expected: added some tests for <remove> element
svn path=/trunk/mcs/; revision=67370