59 Commits
Author SHA1 Message Date
Marek Safar 26b4a3d856 Merge pull request #2891 from xmcclure/bug-39669
Allow xml configuration sections to reference System.dll (bug#39669)
2016-04-20 08:09:32 +02:00
Marek Safar 39d63219ee [System.Configuration] Fail tests on standalone error 2016-04-19 23:24:12 +02:00
Andi McClure fee605ccc5 Add xml configuration section test (bug#39669) 2016-04-19 17:13:31 -04:00
Marek Safar 11059591da [System.Configuration] re-enable standalone tests 2016-04-19 23:10:21 +02:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
Alexander Köplinger 3a71f84cca [build] Fix a few Makefiles to correctly use net_4_x instead of net_4_5 2015-07-25 17:47:29 +02:00
Alex Rønne Petersen 351e94964c Remove obsolete profiles and profile checks from the build system.
* Removed all old profiles from VALID_PROFILE checks.
* Removed most logic under checks like ifeq (net_2_0), $(PROFILE)) as
  it is dead code now that those old profiles are gone.
* Simplified the list of assemblies in mcs/class/Makefile now that we
  only have one profile.
* LIBRARY_NEEDS_POSTPROCESSING has been removed as it was only used by
  old 1.x assemblies that no longer exist.
* Build logic that sets MONO_PATH now points to mcs/class/lib/net_4_5
  instead of mcs/class/lib/net_2_0.
2015-02-03 03:41:14 +01:00
Raja R Harinath cd51491631 Fix a few cases of mixed line-endings
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.
2010-07-26 02:20:13 +05:30
Raja R Harinath b293948fb7 EOL handling
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.
2010-07-25 20:17:39 +05:30
Gert Driesen cbe103cb5c added test for bug #413203.
svn path=/trunk/mcs/; revision=109501
2008-08-02 20:13:16 +00:00
Gert Driesen 76894bdd86 * t46.cs: Improve test coverage.
svn path=/trunk/mcs/; revision=107050
2008-07-02 10:46:41 +00:00
Gert Driesen 37aab507c8 * Makefile: added test t46.
* 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
2008-07-02 10:26:50 +00:00
Gert Driesen 590868c044 * ConfigurationErrorsExceptionTest.cs: Added tests for ctors and
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
2008-06-26 10:31:07 +00:00
Konstantin Triger 463fe4b128 properly override NameValueCollection to support interop with it
svn path=/trunk/mcs/; revision=91960
2007-12-27 18:51:37 +00:00
Atsushi Eno 3124e8a335 2007-11-15 Atsushi Enomoto <[email protected]>
* Makefile : added -r:System.Data.
	* t45.cs, t45.exe.expected : test for bug #323708.


svn path=/trunk/mcs/; revision=89702
2007-11-15 20:22:22 +00:00
Vladimir Krasnov 823091a668 No newline at end of file made this test failing
svn path=/trunk/mcs/; revision=74363
2007-03-15 13:15:14 +00:00
Vladimir Krasnov 7de781ccb3 * System.Configuration.dll.sources, System.Configuration20.vmwcsproj: added OrdinalComparer.cs
* 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
2007-03-15 13:09:35 +00:00
Miguel de Icaza e6e9ffe648 From Peter Dettman:
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
2007-03-06 05:08:35 +00:00
Konstantin Triger 5add913d46 ignore properties with null or empty name
svn path=/trunk/mcs/; revision=71124
2007-01-16 12:21:52 +00:00
Konstantin Triger 28a2f305cb * ConfigurationElement.cs: Try to deserilalize an unrecognized element by
current element, and only if failed delegate to default collection.

svn path=/trunk/mcs/; revision=71113
2007-01-16 09:17:42 +00:00
Atsushi Eno 3ec6ab7336 2006-12-27 Atsushi Enomoto <[email protected]>
* 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
2006-12-27 05:59:54 +00:00
Atsushi Eno b8e11ea81e 2006-12-22 Atsushi Enomoto <[email protected]>
* Makefile : disable t13 and t14 tests (they are based on old API
	  or whatever - now broken).


svn path=/trunk/mcs/; revision=69927
2006-12-22 09:51:42 +00:00
Vladimir Krasnov 7bf66cf865 fixed expected result as in .net
svn path=/trunk/mcs/; revision=69870
2006-12-21 16:16:16 +00:00
Konstantin Triger af2c502418 Delegate parameter checking and default assigning to Configuratin property.
Ensure the TypeConvert and Validator always exist.
Ensure the primitive types are properly initialized.

svn path=/trunk/mcs/; revision=69273
2006-12-10 12:58:44 +00:00
Vladimir Krasnov 36dcfe5b80 * System.Configuration.dll.sources, System.Configuration20.vmwcsproj: added ConfigurationRemoveElement.cs
* 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
2006-11-05 12:42:51 +00:00
Vladimir Krasnov 896b2279a9 * NameValueConfigurationElement.cs: fixed functionality
* ConfigurationElementCollection.cs, ConnectionStringSettingsCollection.cs: fixed <remove> element in connectionStrings section
* t37.cs, t37.exe.config, t37.exe.expected: new test for <remove> bug in connectionStrings section

svn path=/trunk/mcs/; revision=64918
2006-09-05 07:59:27 +00:00
Atsushi Eno 5448536f8c 2006-05-10 Atsushi Enomoto <[email protected]>
* t36.cs, t36-lib.cs, t36.exe.config, t36.exe.expected :
	  new test for bug #77236.
	* Makefile : added a trick for building this test.


svn path=/trunk/mcs/; revision=60513
2006-05-10 14:48:14 +00:00
Atsushi Eno 521c0ea909 2006-05-10 Atsushi Enomoto <[email protected]>
* 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
2006-05-10 03:39:56 +00:00
Atsushi Eno 0f29606011 2006-04-28 Atsushi Enomoto <[email protected]>
* SectionGroupInfo.cs :
	  sections which are defined in sectionGroups could be directly
	  referenced, so search corresponding section recursively.
	* DefaultSection.cs : It does not reject unrecognized contents.

	* t33.cs, t33.exe.config, t33.exe.expected,
	  t34.cs, t34.exe.config, t34.exe.expected,
	  Makefile : new tests.


svn path=/trunk/mcs/; revision=60042
2006-04-28 16:20:54 +00:00
Atsushi Eno 13adfb95e6 2006-04-27 Atsushi Enomoto <[email protected]>
* t16.exe.result
	  t17.exe.result
	  t18.exe.result : removed.
	* t32.cs
	  t32.exe.expected
	  t32.exe.config : new test from bug #77957.
	* Makefile : use diff --strip-trailing-cr instead of cmp so that
	  it works fine on windows.

	(added ChangeLog as well.)


svn path=/trunk/mcs/; revision=59986
2006-04-27 15:41:33 +00:00
Chris Toshok 92d092d80a add a couple more tests
svn path=/trunk/mcs/; revision=58480
2006-03-24 19:21:48 +00:00
Chris Toshok a97eff92ae add two tests for <location> elements at various levels in a configuration
svn path=/trunk/mcs/; revision=56086
2006-01-25 23:49:20 +00:00
Chris Toshok e5892133a4 add a test for protecting a section with a nonexistant provider (24), and a series of chained tests that encrypt (25) and decrypt (26) a connection strings section (27 tests the decrypted config).
svn path=/trunk/mcs/; revision=55017
2006-01-03 17:58:43 +00:00
Chris Toshok 61bcca35eb add some more rsa provider properties
svn path=/trunk/mcs/; revision=54985
2006-01-02 21:13:54 +00:00
Chris Toshok 00aaae4a61 add three tests for instantiation of ProtectedConfigurationProviders
svn path=/trunk/mcs/; revision=54974
2006-01-02 20:21:14 +00:00
Chris Toshok b91157c7c9 add expected output for t20
svn path=/trunk/mcs/; revision=54966
2006-01-02 19:05:36 +00:00
Chris Toshok 8b3e38860c add raw xml test. need to get the expected output from windows still.
svn path=/trunk/mcs/; revision=54955
2006-01-02 15:33:53 +00:00
Chris Toshok 0b0b9b362a add test for invalid attribute name in lockAllAttributesExcept attribute
svn path=/trunk/mcs/; revision=54514
2005-12-16 04:36:10 +00:00
Chris Toshok a430357145 oops, don't commit these
svn path=/trunk/mcs/; revision=54502
2005-12-15 21:54:05 +00:00
Chris Toshok 675750ef87 bunch of new tests, mostly centering around the lock* attributes
svn path=/trunk/mcs/; revision=54501
2005-12-15 21:53:50 +00:00
Chris Toshok 1aca69ec2d fix config and expected files for t13 and t14
svn path=/trunk/mcs/; revision=52143
2005-10-24 18:45:24 +00:00
Chris Toshok c7e7995656 update the expected output
svn path=/trunk/mcs/; revision=52141
2005-10-24 18:03:15 +00:00
Chris Toshok 7ed5e6dc6f 2005-10-24 Chris Toshok <[email protected]>
* standalone/Makefile: hide the output from cmp.


svn path=/trunk/mcs/; revision=52139
2005-10-24 17:49:52 +00:00
Chris Toshok ce7a75680c modify t3 slightly
svn path=/trunk/mcs/; revision=52138
2005-10-24 17:48:45 +00:00
Chris Toshok 9cd10a13b9 add tests for collections with different add/remove/clear item names
svn path=/trunk/mcs/; revision=51630
2005-10-11 19:10:56 +00:00
Chris Toshok ab4f4de07b fix c&p
svn path=/trunk/mcs/; revision=51629
2005-10-11 19:07:27 +00:00
Chris Toshok d624c962a1 out the type of the exception raised
svn path=/trunk/mcs/; revision=51628
2005-10-11 19:07:11 +00:00
Chris Toshok dc939b2c05 add both new tests
svn path=/trunk/mcs/; revision=51437
2005-10-07 21:00:47 +00:00
Chris Toshok 7d4f78c361 add test for custom section where the default value's type doesn't match the property
svn path=/trunk/mcs/; revision=51436
2005-10-07 20:59:38 +00:00
Chris Toshok 85028d6c5a add test of custom section with validator and property attributes
svn path=/trunk/mcs/; revision=51435
2005-10-07 20:57:43 +00:00