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
* 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
* 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
* 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
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
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
* LookupBindingPropertiesAttribute.cs:
Should be sealed. Implemented GetHashCode().
* LookupBindingPropertiesAttributeTest.cs:
test GetHashCode() as well.
svn path=/trunk/mcs/; revision=78359
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-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
* 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
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-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
* 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
* 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 Chris Toshok <[email protected]>
* PropertyDescriptorTests.cs: flesh out these tests more with some
for ShouldSerialize and CanReset.
In System.ComponentModel:
2006-12-06 Chris Toshok <[email protected]>
* ReflectionPropertyDescriptor.cs: fixes for CanResetValue and
ShouldSerializeValue - we need to find both public and nonpublic
methods.
svn path=/trunk/mcs/; revision=69136
* ArrayConverter.cs: Modifed ConvertTo for Array => String to match
MS. In GetProperties, throw NRE to match MS.
* ArrayConverterTests.cs: Added tests for ArrayConverter.
svn path=/trunk/mcs/; revision=67548
* Test/System.ComponentModel/ContainerTest.cs:
* System.ComponentModel/Container.cs: 'unsite' the component when
removing it. Fixes bug #79255. Patch by Ivan N. Zlatev.
svn path=/trunk/mcs/; revision=65261
* Test/System.ComponentModel/TypeDescriptorTests.cs: test for overriden
attributes.
* System.ComponentModel/TypeDescriptor.cs: don't ignore toplevel
attributes when they are overriden.
Patch by Ivan N. Zlatev that fixes bug #79256.
svn path=/trunk/mcs/; revision=65242
* BaseNumberConverter.cs : (ConvertTo) regardless of InnerType,
it converts the argument value to InnerType using supplied format.
(It might be not limited to NET_2_0 but it's too cosmetic to dig
into the problem. At least this is for run-test-ondotnet fixes.)
* ByteConverterTests.cs,
DecimalConverterTests.cs,
DoubleConverterTests.cs,
Int16ConverterTests.cs,
Int64ConverterTests.cs,
SByteConverterTests.cs,
SingleConverterTests.cs,
UInt16ConverterTests.cs,
UInt32ConverterTests.cs,
UInt64ConverterTests.cs:
ConvertToString() (test with custom culture) failed on .NET 2.0.
Fixed it by adding NumberFormat override in each test culture.
svn path=/trunk/mcs/; revision=59860
* DateTimeConverter.cs: ConvertTo must return zero-length string
for DateTime.MinValue. Use CultureInfo.GetFormat to obtain
DateTimeFormatInfo to match MS.NET.
* System_test.dll.sources: Added DateTimeConverterTests.cs.
svn path=/trunk/mcs/; revision=49013
* Int16ConverterTests.cs: Added tests for Int16Converter.
* Int32ConverterTests.cs: Added tests for Int32Converter.
* BaseNumberConverter.cs: In ConvertFrom, wrap all exceptions that
are thrown while converting from string in an Exception.
* System_test.dll.sources: Added ByteConverterTests.cs,
Int16ConverterTests.cs and Int32ConverterTests.cs.
* Makefile: We also need to reference System.Drawing assembly to
build test assembly.
svn path=/trunk/mcs/; revision=48428
* ToolboxItemAttribute.cs: Fixed GetHashCode to correspond with MS.NET.
Fixed initialization order. Throw ArgumentException if item type
cannot be loaded.
* System_test.dll.sources: Added ToolboxItemAttributeTests.cs from
System.ComponentModel.
svn path=/trunk/mcs/; revision=48427
not an IComponent or has no Site. In .NET 2.0, GetDefaultEvent does not
fallback to first defined event if the default event is filtered out.
GetDefaultProperty did not take filtering into account. Fixes bug #75152.
* TypeDescriptorTests.cs: added tests for bug #75152. Fixed tests to pass on
both Mono and MS.NET.
svn path=/trunk/mcs/; revision=45414
* Test/System.ComponentModel/TypeDescriptorTests.cs: new test for
TypeConverter ctor that takes a Type argument.
* System.ComponentModel/TypeDescriptor.cs: fixed bug #71601.
GetConverter should handle TypeConverter derived classes that
take a Type argument.
svn path=/trunk/mcs/; revision=40175