Commit Graph
90 Commits
Author SHA1 Message Date
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
Arina Itkes daa0a24c3e TARGET_JVM: replacing config file name to actual
svn path=/trunk/mcs/; revision=90154
2007-11-22 13:34:19 +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
Gert Driesen 1a52c9eadd * System.Configuration_test.dll.sources: added ProviderBaseTest.cs.
* 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
2007-08-31 14:15:07 +00:00
Atsushi Eno 94e85f4d14 2007-06-20 Atsushi Enomoto <[email protected]>
* 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
2007-06-20 16:26:15 +00:00
Atsushi Eno b0c24508c7 2007-06-13 Atsushi Enomoto <[email protected]>
* 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
2007-06-13 16:14:09 +00:00
Konstantin Triger 93e7e92fed TARGET_JVM: Enable passing tests
svn path=/trunk/mcs/; revision=76780
2007-05-06 13:30:30 +00:00
Atsushi Eno b0c6b96130 2007-04-17 Atsushi Enomoto <[email protected]>
* ConfigurationManagerTest.cs : added SectionCollectionEnumerator().
	  Fixed NotWorking test OpenMachineConfiguration().


svn path=/trunk/mcs/; revision=75808
2007-04-17 06:16:42 +00:00
Noam Lampert 91bfdd3709 Convert jgac to java_refs, and jre6 to jre
svn path=/trunk/mcs/; revision=74768
2007-03-21 21:33:34 +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
Noam Lampert 60f66bf852 rename jgac/vmw4j2ee_110 to jcag/framework
svn path=/trunk/mcs/; revision=74277
2007-03-14 17:26:57 +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
Noam Lampert ecd61be7b3 Grasshopper project system now uses csproj extension
svn path=/trunk/mcs/; revision=72702
2007-02-12 21:45:32 +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
Boris Kirzner 1f8dc337aa Marked not working tests.
svn path=/trunk/mcs/; revision=65564
2006-09-18 08:54:06 +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
Boris Kirzner 8ecc55e4a4 Small fixes for TARGET_JVM tests.
svn path=/trunk/mcs/; revision=64859
2006-09-04 12:38:20 +00:00
Boris Kirzner d44fb23e92 Added TARGET_JVM NET_2_0 tests projects and run scripts.
svn path=/trunk/mcs/; revision=64855
2006-09-04 12:16:45 +00:00
Atsushi Eno 968863d890 2006-07-07 Atsushi Enomoto <[email protected]>
* 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
2006-07-07 07:16:05 +00:00
Atsushi Eno 892b90984e 2006-05-14 Atsushi Enomoto <[email protected]>
* ConfigurationManagerTest.cs :
          duh, why I overwrote it before commit :( Fix the build.


svn path=/trunk/mcs/; revision=60691
2006-05-14 17:06:04 +00:00
Atsushi Eno dff36b4dff 2006-05-12 Atsushi Enomoto <[email protected]>
* 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
2006-05-12 09:54:22 +00:00
Atsushi Eno abc39d2e41 2006-05-10 Atsushi Enomoto <[email protected]>
* ConnectionStringSettings.cs : it seems that "name" property
	  could be null i.e. there is no StringValidator.
	* StringValidator.cs : allow null.

	* StringValidatorTest.cs : added NullZero().


svn path=/trunk/mcs/; revision=60516
2006-05-10 15:10:54 +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 0c49544398 commit the reflection based configuration dumping utility
svn path=/trunk/mcs/; revision=55271
2006-01-09 22:27:53 +00:00
Chris Toshok c1232dd8f8 add new test
svn path=/trunk/mcs/; revision=55261
2006-01-09 21:19:32 +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 ec0d6d024f 2005-12-16 Chris Toshok <[email protected]>
* System.Configuration/ConfigurationLockCollectionTest.cs
	(DuplicateAdd, IsReadOnly): new tests.


svn path=/trunk/mcs/; revision=54533
2005-12-16 16:29:22 +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 db070a01a1 2005-12-06 Chris Toshok <[email protected]>
* System.Configuration/ConnectionStringSettingsTest.cs (NameNull):
	use IsNull, not AreEqual.


svn path=/trunk/mcs/; revision=54004
2005-12-06 20:33:30 +00:00
Chris Toshok afc4da9d07 2005-12-02 Chris Toshok <[email protected]>
* System.Configuration/ConnectionStringSettingsTest.cs: new tests.
	we fail a couple, due to the fact that it seems StringValidator on
	MS (at least in this case) doesn't actually check the MinLength
	requirement when the value is null.  I'm a bit confused by this.

	* System.Configuration/StringValidatorTest.cs: add a null
	validation check.


svn path=/trunk/mcs/; revision=53867
2005-12-03 01:39:12 +00:00
Chris Toshok 8fa0fa0f82 2005-11-14 Chris Toshok <[email protected]>
* System.Configuration/CommaDelimitedStringCollectionConverterTest.cs:
	new test.


svn path=/trunk/mcs/; revision=53027
2005-11-14 18:34:58 +00:00
Chris Toshok 3fe160edb1 2005-10-25 Chris Toshok <[email protected]>
* System.Configuration/InfiniteTimeSpanConverterTest.cs: new test.


svn path=/trunk/mcs/; revision=52223
2005-10-26 02:13:27 +00:00