* EventDescriptorCollectionTests.cs: Added tests based on tests for
PropertyDescriptorCollection.
* PropertyDescriptorCollectionTests.cs: Added tests for Sort overloads.
Improved test for Find with null key.
* EventDescriptorCollection.cs: Fixed NRE in Sort overloads when order
string array is null.
* PropertyDescriptorCollection.cs: Fixed NRE in Sort overloads when
order string array is null.
svn path=/trunk/mcs/; revision=106733
* DateTimeConverter.cs : use MM for month instead of mm.
Fixed bug #396649, patch by Andy Hume.
* DateTimeConverterTest.cs : test for bug #396649 by Andy Hume.
svn path=/trunk/mcs/; revision=105573
* TypeDescriptor.cs: GetAttributes must retrieve the attributes of
the type, the base types and the interfaces the type implements.
[Fix part of bug #394310]
* TypeDescriptorTests.cs: Add test that verifies that GetAttributes
retrieves the attributes of the type, the base types and the
interfaces the type implements.
svn path=/trunk/mcs/; revision=104438
* TypeDescriptor.cs: GetProperties should not return write-only
properties. Patch by James Fitzsimons <[email protected]>.
* TypeDescriptorTests.cs: Add test for handling write-only properties.
svn path=/trunk/mcs/; revision=102535
* CodeGeneratorFromTypeTest.cs: Added tests for static and abstract
property.
* ComponentConverterTests.cs: Allow test to be compiled using csc 1.x.
* ExecutorTest.cs: Use Assert.Ignore when ping is not available.
Avoid using ExpectedException in ExecWait test, and added link to
MS bug report.
svn path=/trunk/mcs/; revision=102229
* ReferenceConverter.cs: fix ConvertFrom and ConvertTo when
converting from/to string - base must be called only if the
conversion target type is NOT string, otherwise the result of the
conversion will be the value type name.
2008-04-16 Marek Habersack <[email protected]>
* ComponentConverterTests.cs: added tests for
{Component, Reference}Converter ConvertFrom/ConvertTo changes.
2008-04-16 Marek Habersack <[email protected]>
* System_test.dll.sources: added
System.ComponentModel/ComponentConverterTests.cs
* Makefile (TEST_MCS_FLAGS): reference -r:System.Data for new
tests.
svn path=/trunk/mcs/; revision=100952
* TypeDescriptor.cs: Do not return parent type properties, where the child
has used "new" and also changed the property return type. The problem was that
Type.GetProperties returns both the child and parent property in this case.
* TypeDescriptorTests.cs: Add an unit test.
[Fixes bug #374334]
svn path=/trunk/mcs/; revision=99235
* PropertyDescriptor.cs:
- Implement CreateInstance and GetTypeFromName
and refactor GetEditor and Converter use them.
- Drop TypeDescriptor.GetTypeFromName as we also want to check the
ComponentType assembly, which it doesn't do.
* TypeDescriptor.cs: Make GetTypeFromName private as it is no longer
used from the outside.
* PropertyDescriptorTests.cs: Add Converter tests. Based on a
patch by Andy Hume <[email protected]> under the MIT/X11
license.
* System_test.dll.sources: Add Consts.cs so that tests can use it
(e.g for specifying assembly qualified type names in attributes).
svn path=/trunk/mcs/; revision=96687
* CultureInfoConverterTest.cs: Added tests for ConvertFrom and
ConvertTo.
* CharConverter.cs (ConvertFrom): Avoid NRE when value is null.
Provide more info when left of value > 1.
* CultureInfoConverter.cs (ConvertFrom): Avoid NRE when value is null.
On 2.0 profile, use case-sensitive comparison for (Default) value.
Use case-insensitive comparing when value is considered as displayname.
Provide more info in exception message.
(ConvertTo): Use '(Default)' instead of '(default)' for invariant
culture.
* System_test.dll.sources: Added CharConverterTest.cs and
CultureInfoConverterTest.cs.
svn path=/trunk/mcs/; revision=95995
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
* 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
* 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
* 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
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
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
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