Commit Graph
85 Commits
Author SHA1 Message Date
Rolf Bjarne Kvinge 35211604e6 * System.ComponentModel/MaskedTextProvider.cs,
Test/System.ComponentModel/MaskedTextProviderTest.cs: Fix
  IsPassword (found by Gendarme)

svn path=/trunk/mcs/; revision=93313
2008-01-19 11:26:12 +00:00
Roei Erez e3fd2f0f51 Remove TARGET_JVM directive
svn path=/trunk/mcs/; revision=93140
2008-01-17 10:38:22 +00:00
Gert Driesen 9e100ebe8f * Component.cs: Moved Site property before Container to match MS. This
allows a unit test for ordered result of TypeDescriptor.GetProperties
to pass.
* TypeDescriptorProperties.cs: added test for order of 
PropertyDescriptor instances returned by GetProperties.

svn path=/trunk/mcs/; revision=92200
2008-01-03 18:53:19 +00:00
Vladimir Krasnov 697eb249dc * PropertyDescriptorCollection.cs: optimized Find method, removed culture sensitive string comparison
* PropertyDescriptorCollectionTests.cs: added test for Find method

svn path=/trunk/mcs/; revision=91873
2007-12-25 10:17:47 +00:00
Gert Driesen d904080ad7 * System_test.dll.sources: Added Win32ExceptionTest.cs.
* Win32Exception.cs: Do not pass native error to base ctors.
* Win32ExceptionTest.cs: Added ctor tests.

svn path=/trunk/mcs/; revision=90633
2007-12-04 10:43:32 +00:00
Arina Itkes 0e6dd46fa2 TARGET_JVM: Mark ConvertFrom_String, ConvertFrom_String_Flags NotWorking
svn path=/trunk/mcs/; revision=90153
2007-11-22 13:14:15 +00:00
Gert Driesen 9150d90702 * MemberDescriptor.cs: Spaces to tabs, code formatting.
* PropertyDescriptor.cs: When adding or removing a new handler for an 
existing component, update the hashtable. In GetValueChangedHandler,
return null if component is null.
* PropertyDescriptorTests.cs: Added tests for AddValueChanged,
GetInvocationTarget, GetValueChangedHandler and RemoveValueChanged.

svn path=/trunk/mcs/; revision=89659
2007-11-15 09:25:50 +00:00
Gert Driesen 93905517cd * InvalidEnumArgumentExceptionTest.cs: Added ctor tests.
* InvalidEnumArgumentException.cs: Fixed default ctor. Modified
message on 2.0 profile for ctor (string, int, Type) to match MS.
* System_test.dll.sources: Added InvalidEnumArgumentExceptionTest.cs.

svn path=/trunk/mcs/; revision=88787
2007-11-03 14:13:27 +00:00
Atsushi Eno 6d007bebd8 2007-10-29 Atsushi Enomoto <[email protected]>
* AttributeCollection.cs : implemented FromExisting().
	* Container.cs : implemented ValidateName() support.
	* ContainerFilterService.cs : FilterComponents() does nothing.
	* InstanceCreationEditor.cs : implemented get_Text().

	* ContainerTest.cs : added test for ValidateName().


svn path=/trunk/mcs/; revision=88388
2007-10-29 15:30:55 +00:00
Jb Evain 30aed93240 2007-09-28 Jb Evain <[email protected]>
* TypeConverterTests.cs: test case for bug #329450.


svn path=/trunk/mcs/; revision=86593
2007-09-28 17:56:19 +00:00
Jonathan Pobst 7dc885163c 2007-09-25 Jonathan Pobst <[email protected]>
* SynchronizationContext.cs: Implement SetSynchronizationContext.

2007-09-25  Jonathan Pobst  <[email protected]>

	* AsyncOperationManager.cs: Tie the SynchronizationContext here to
	SynchronizationContext.Current.

2007-09-25  Jonathan Pobst  <[email protected]>

	* AsyncOperationManagerTest.cs: Add test for SynchronizationContext.

2007-09-25  Jonathan Pobst  <[email protected]>

	* System_test.dll.sources: Added AsyncOperationManagerTest.cs.

svn path=/trunk/mcs/; revision=86329
2007-09-25 14:38:37 +00:00
Gert Driesen a2842d1868 Removed svn:executable property.
svn path=/trunk/mcs/; revision=85912
2007-09-17 17:28:47 +00:00
Gert Driesen ff7a12fe63 * System_test.dll.sources: Added ComponentResourceManagerTest.cs.
* ComponentResourceManager.cs: In ApplyResources, when culture is
null use CurrentUICulture. Use hashtable, which is case-insensitive
when IgnoreCase is true, to store the resources of the specified
culture and its parent(s). When IgnoreCase is set, perform a
case-insensitive lookup of property. Ignore resources that have no
value, or where the value is not an instance of the property type.
Fixes bug #82674.
* ComponentResourceManagerTest.cs: Added tests for ctors,
ApplyResources and IgnoreCase.

svn path=/trunk/mcs/; revision=85910
2007-09-17 17:24:04 +00:00
Gert Driesen 2593ef8f9a * EnumConverterTest.cs: Enabled test for converting flag enum from
string. Made tests less strict.
* EnumConverter.cs: Added support for converting flag enum from
string.
* System_test.dll.sources: Added EnumConverterTest.cs.

svn path=/trunk/mcs/; revision=85365
2007-09-05 14:48:28 +00:00
Gert Driesen b24bda0e8b * TypeConverter.cs: Fixed GetConvertFromException and
GetConvertToException to match MS, and use these in ConvertFrom and
ConvertTo.
* EnumConverter.cs: Use IsFlags instead of duplicating code that 
checks for FlagsAttribute. When converting to InstanceDescriptor and
no corresponding enum field is found, then let base class throw a
NotSupportedException.
* TypeConverterTest.cs: Added tests for GetConvertFromException and
GetConvertToException.
* EnumConverterTest.cs: Enabled test for converting flag enums to
InstanceDescriptor. 

svn path=/trunk/mcs/; revision=85092
2007-08-31 09:10:28 +00:00
Konstantin Triger 8f0209ad3f remove unneeded 'using'
svn path=/trunk/mcs/; revision=84939
2007-08-28 11:11:47 +00:00
Ivan Zlatev dadb140299 2007-08-25 Ivan N. Zlatev <[email protected]>
* NestedContainer.cs: implemented.
        * NestedContainerTest.cs: add.


svn path=/trunk/mcs/; revision=84844
2007-08-25 08:11:30 +00:00
Gert Driesen ebafc0e03e * EnumConverter.cs: Conversion to and from Enum [] is 2.0 only.
Modified conversion to string to support enum names and integral
values, and throw ArgumentException if value is not valid.
For conversion to InstanceDescriptor, use ConvertToString to get name
of field. Avoid endless loop when converting to Enum [].
* ToolboxItemFilterType.cs: Spaces to tabs.
* TypeConverter.cs: Improve exception messages (to match MS).
* EnumConverterTests.cs: Added tests for EnumConverter.

svn path=/trunk/mcs/; revision=84480
2007-08-20 18:37:49 +00:00
Ivan Zlatev 280c2da733 2007-08-19 Ivan N. Zlatev <[email protected]>
* ReflectionPropertyDescriptor.cs: For read-only properties,
        ShouldSerializeValue must also check for 
        DesignerSerializationVisibility.Content and if present return
true.
        * PropertyDescriptorTests.cs: Tests to verify the above.


svn path=/trunk/mcs/; revision=84402
2007-08-19 15:53:33 +00:00
Gert Driesen 111bd54aa0 * TypeDescriptorTests: Removed Ivan's local Category.
svn path=/trunk/mcs/; revision=84388
2007-08-19 11:50:10 +00:00
Ivan Zlatev e876040978 2007-08-19 Ivan N. Zlatev <[email protected]>
* TypeDescriptor.cs: GetProperties should return only the last type's 
	implementation of a property with a matching name in the base types.
        * TypeDescriptorTests.cs: test to verify the above.


svn path=/trunk/mcs/; revision=84375
2007-08-19 10:08:37 +00:00
Atsushi Eno 044c5019fa 2007-08-01 Atsushi Enomoto <[email protected]>
* BackgroundWorker.cs : remove extra MonoTODOs.

	* BackgroundWorkerTest.cs : new test to clear some doubts on impl.

	* System_test.dll.sources : added BackgroundWorkerTest.cs.


svn path=/trunk/mcs/; revision=83156
2007-08-01 09:14:28 +00:00
Gert Driesen 770de091b8 * DisplayNameAttribute.cs: To match MS, do not change null DisplayName
to a zero-length string. Modified IsDefaultAttribute to take into
account null DisplayName.
* DisplayNameAttribute.cs: Added ctor tests. Fixed tests to pass on
MS (now that our implementation matches that of MS). Added tests
for Default, GetHashCode and Equals.

svn path=/trunk/mcs/; revision=82414
2007-07-21 13:37:11 +00:00
Gert Driesen 44545ba137 * ReflectionPropertyDescriptor.cs: For read-only properties,
ShouldSerializeValue must only take into account the return value
of the ShouldSerialize method. Code formatting.
* PropertyDescriptorTests.cs: Added test for ShouldSerializeValue
behavior with read-only properties.

svn path=/trunk/mcs/; revision=82017
2007-07-16 07:08:02 +00:00
Gert Driesen e810236970 * PropertyDescriptorTests.cs: Added tests for Igor's fixes for
ShouldSerializeValue.

svn path=/trunk/mcs/; revision=81919
2007-07-13 03:11:17 +00:00
Rolf Bjarne Kvinge f08708a598 * PropertyDescriptorTests.cs: Added GetEditorTest.
svn path=/trunk/mcs/; revision=81880
2007-07-12 16:13:29 +00:00
Atsushi Eno 4dfba85788 2007-05-31 Atsushi Enomoto <[email protected]>
* LookupBindingPropertiesAttribute.cs:
	  Should be sealed. Implemented GetHashCode().

	* LookupBindingPropertiesAttributeTest.cs:
	  test GetHashCode() as well.


svn path=/trunk/mcs/; revision=78359
2007-05-31 17:20:10 +00:00
Rolf Bjarne Kvinge dc40254a40 2007-05-31 Rolf Bjarne Kvinge <[email protected]>
* LookupBindingPropertiesAttributeTest.cs: Added.


svn path=/trunk/mcs/; revision=78325
2007-05-31 13:43:40 +00:00
Rolf Bjarne Kvinge 9c481890e8 In Test/System.ComponentModel:
2007-05-10  Rolf Bjarne Kvinge  <[email protected]>

	* MaskedTextProviderTest.cs: New test.

In System.ComponentModel:
2007-05-10  Rolf Bjarne Kvinge  <[email protected]>

	* MaskedTextProvider.cs: Small fix for ToString for passwords.


svn path=/trunk/mcs/; revision=77150
2007-05-10 18:58:06 +00:00
Rolf Bjarne Kvinge 84b4a1c218 In Test/System.ComponentModel:
2007-02-27  Rolf Bjarne Kvinge  <[email protected]>

	* MaskedTextProviderTest.cs: Added.
	* MaskedTextProviderTestGenerator.cs: Added.

In System.ComponentModel:
2007-02-27  Rolf Bjarne Kvinge  <[email protected]>

	* MaskedTextProvider.cs: Added.

In .:
2007-02-27  Rolf Bjarne Kvinge  <[email protected]>

	* System_test.dll.sources: Added MaskedTextProviderTest.cs
	* System.dll.sources: Added MaskedTextProvider.cs


svn path=/trunk/mcs/; revision=73455
2007-02-27 09:11:47 +00:00
Gert Driesen e9e89c0034 * TypeDescriptorTests.cs: Use Assert instead of deriving from
deprecated Assertion. Added test for component that has a site without
an ITypeDescriptorFilterService. Fixes bug #80836.
* TypeDescriptor.cs: Do not assume that an ISite always has an
ITypeDescriptorFilterService. Fixes bug #80836.

svn path=/trunk/mcs/; revision=73040
2007-02-16 20:03:04 +00:00
Ilya Kharmatsky 061fb79067 Excluded tests which are not working in Grasshopper.
svn path=/trunk/mcs/; revision=72095
2007-02-01 15:01:09 +00:00
Ilya Kharmatsky 2b72a5f7f1 Excluded test DefaultType in ToolboxItemAttributeTests.cs under 'TARGET_JVM'
configuration.


svn path=/trunk/mcs/; revision=71862
2007-01-29 12:07:01 +00:00
Ilya Kharmatsky 564c9194d0 Workaround not supported in Grasshopper property System.ArgumentNullException.ParamName.
svn path=/trunk/mcs/; revision=71687
2007-01-25 17:22:34 +00:00
Chris Toshok d350d3e221 In Test/System.ComponentModel:
2007-01-20  Chris Toshok  <[email protected]>

	* BindingListTest.cs: new tests for BindingList<T>

In System.ComponentModel:
2007-01-20  Chris Toshok  <[email protected]>

	* BindingList.cs: new class.


svn path=/trunk/mcs/; revision=71405
2007-01-21 03:48:03 +00:00
Sebastien Pouliot 9e9fa7ac0e 2007-01-05 Sebastien Pouliot <[email protected]>
* TypeDescriptorTests.cs: Fix TestGetAttributes t16 as there can be
	many [Designer] attributes and their order isn't deterministic (like
	the test required).


svn path=/trunk/mcs/; revision=70561
2007-01-05 22:05:29 +00:00
Konstantin Triger fa86a4c482 Do not reject null key
svn path=/trunk/mcs/; revision=70354
2007-01-02 13:28:03 +00:00
Konstantin Triger 2a27d3fca3 correct asserts in the test
svn path=/trunk/mcs/; revision=70317
2007-01-01 15:43:57 +00:00
Gert Driesen b8e6472800 Set eol-style to native.
svn path=/trunk/mcs/; revision=70189
2006-12-28 20:52:01 +00:00
Gert Driesen e066432efb * ContainerTest.cs: Fixed compiler warning.
svn path=/trunk/mcs/; revision=70188
2006-12-28 20:51:12 +00:00
Robert Jordan 74fb97078e Fix the 1.1 build.
svn path=/trunk/mcs/; revision=70020
2006-12-24 16:12:31 +00:00
Konstantin Triger 61c9456424 Implemented DataObjectMethodAttribute and DataObjectMethodType
svn path=/trunk/mcs/; revision=70016
2006-12-24 11:41:38 +00:00
Rolf Bjarne Kvinge d06a984cec In Test/System.ComponentModel:
2006-12-22  Rolf Bjarne Kvinge  <[email protected]>

	* DefaultBindingPropertyAttributeTest.cs: new tests.

In System.ComponentModel:
2006-12-22  Rolf Bjarne Kvinge  <[email protected]>

	* DefaultBindingPropertyAttribute.cs: new attribute.

In .:
2006-12-22  Rolf Bjarne Kvinge  <[email protected]>

	* System_test.dll.sources: added DefaultBindingPropertyAttributeTest.cs

	* System.dll.sources: added DefaultBindingPropertyAttribute.cs


svn path=/trunk/mcs/; revision=69949
2006-12-22 17:16:42 +00:00
Gert Driesen beb5f379a9 * MemberDescriptor.cs: On 2.0 profile, take the DisplayNameAttribute
into account for DisplayName. Fixes bug #80292.
* PropertyDescriptorTests.cs: Added test for bug #80292. Fixed
accessibility of NestedClass, not caugh due to bug #80338.

svn path=/trunk/mcs/; revision=69895
2006-12-21 20:13:27 +00:00
Chris Toshok 58781eb8e8 In Test/System.ComponentModel:
* AttributeProviderAttributeTest.cs: new tests.

2006-12-20  Chris Toshok  <[email protected]>

In System.ComponentModel:
	* AttributeProviderAttribute.cs: new class.

2006-12-20  Chris Toshok  <[email protected]>

In .:
	* System_test.dll.sources: add AttributeProviderAttributeTest.cs

	* System.dll.sources: add AttributeProviderAttribute.cs

2006-12-20  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=69846
2006-12-20 23:31:56 +00:00
Chris Toshok e8564cfa57 In Test/System.ComponentModel:
* ComplexBindingPropertiesAttributeTest.cs: add test for Default
	field.

2006-12-20  Chris Toshok  <[email protected]>

In System.ComponentModel:
	* ComplexBindingPropertiesAttribute.cs: add Default field.

2006-12-20  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=69845
2006-12-20 23:01:43 +00:00
Chris Toshok a506c4efe8 In Test/System.ComponentModel:
2006-12-20  Chris Toshok  <[email protected]>

	* ComplexBindingPropertiesAttributeTest.cs: new tests.

In System.ComponentModel:
2006-12-20  Chris Toshok  <[email protected]>

	* ComplexBindingPropertiesAttribute.cs: new 2.0 attribute.

In .:
2006-12-20  Chris Toshok  <[email protected]>
	* System_test.dll.sources: add ComplexBindingPropertiesAttributeTest.cs

	* System.dll.sources: add ComplexBindingPropertiesAttribute.cs


svn path=/trunk/mcs/; revision=69842
2006-12-20 21:37:18 +00:00
Chris Toshok 0ef497a233 In Test/System.ComponentModel:
2006-12-19  Chris Toshok  <[email protected]>

	* PropertyDescriptorTests.cs: add some tests here because we were
	generating an NRE for a missing type converter type.  MS doesn't -
	it instead falls back to the converter for the property type.

In System.ComponentModel:
2006-12-19  Chris Toshok  <[email protected]>

	* PropertyDescriptor.cs: stop crashing on a missing type
	converter.


svn path=/trunk/mcs/; revision=69769
2006-12-19 18:42:54 +00:00
Chris Toshok a65a389528 In Test/System.ComponentModel:
* PropertyDescriptorTests.cs: add a test to see if
	ShouldSerializeValue's return value affects CanResetValue.

2006-12-06  Chris Toshok  <[email protected]>

In System.ComponentModel:
	* ReflectionPropertyDescriptor.cs: turns out if "ShouldSerialize*"
	is present and returns false, "CanReset*" also returns false.

2006-12-06  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=69139
2006-12-06 23:22:18 +00:00
Chris Toshok c7269d1d3a In Test/System.ComponentModel:
* PropertyDescriptorTests.cs: add a test for ShouldSerializeValue
	and CanResetValue on a class without ShouldSerialize/Reset
	methods.

2006-12-06  Chris Toshok  <[email protected]>

In System.ComponentModel:
	* ReflectionPropertyDescriptor.cs: ShouldSerializeValue should
	return false if there's no ShouldSerialize method.

2006-12-06  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=69138
2006-12-06 22:40:48 +00:00