* DefaultValueAttributeTest.cs: Change test case to compare the
hash code of two DVA created with null (instead of comparing to 0)
svn path=/trunk/mcs/; revision=157697
* EnumConverter.cs: Fix conversion of 0 flag values.
* EnumConverterTests.cs: Add a test to verify behaviour when converting
a 0 flag value.
[Fixes bug #541402]
svn path=/trunk/mcs/; revision=142534
GetService.
* Container.cs: Changed Dispose(bool) behaviour to match .NET, based
on patch by Tom Hindle ([email protected]). Also use ValidateName
in Add overloads on 1.0 profile by making it available as private
method. Use case-insensitive comparison of component name.
svn path=/trunk/mcs/; revision=138174
* WeakObjectWrapper.cs, WeakObjectWrapperComparer.cs: added - used
by TypeDescriptor for storage of type description providers.
* TypeDescriptor.cs: implemented part of the 2.0+ API which deals
with adding/removing/getting type description providers.
* AttributeCollection.cs: do not throw NREX when attrList is
null in Count.
2009-06-22 Marek Habersack <[email protected]>
* TypeDescriptorTests.cs: added tests for 2.0+ APIs which deal
with adding/removing/getting type description providers.
svn path=/trunk/mcs/; revision=136634
* System.ComponentModel/ListChangedEventArgs.cs: Fix .NET compatibility
problems (discovered from trying to run the System.Data.Linq
unit tests).
* Test/System.ComponentModel/ListChangedEventArgsTest.cs: Added; tests
for ListChangedEventArgs.
svn path=/trunk/mcs/; revision=134138
* AttributeCollection.cs: this [Type] shouldn't throw a NREX when
attrList is null.
* TypeDescriptor.cs: GetConverter (Type) must throw
ArgumentNullException if the passed parameter is null.
FindDefaultConverterType should gracefully cope with type being
null.
2009-02-19 Marek Habersack <[email protected]>
* TypeDescriptorTests.cs: added a test for
TypeDescriptor.GetConverter (null) case.
svn path=/trunk/mcs/; revision=127343
* TypeDescriptor.cs: Added support for NullableConverter.
* TypeDescriptorTests.cs: Added a test for the NullableConverter support.
svn path=/trunk/mcs/; revision=120946
* PropertyDescriptorTests.cs: Define alias for S.C.DescriptionAttribute
to avoid ambiguous reference error using more recent versions of
NUnit (which also contains a DescriptionAttribute).
svn path=/trunk/mcs/; revision=116351
2008-09-01 Rodrigo Kumpera <[email protected]>
* PropertyDescriptorTest.cs: Tests for Get/Set Value of partial
overrides of virtual properties.
In System.ComponentModel:
2008-09-01 Rodrigo Kumpera <[email protected]>
* ReflectionPropertyDescriptor.cs (SetValue, GetValue) : Lookup
the MethodInfo for accessors in parent types in case of partial
overrides of virtual properties.
svn path=/trunk/mcs/; revision=112052
* DefaultValueAttributeTest.cs: New. A few unit tests for
DefaultValueAttribute - showing problems in Equals and GetHashCode.
svn path=/trunk/mcs/; revision=109854
* TypeDescriptor.cs:
- Fix GetConverter (Type) overload to have same logic as the
object one.
- Object-ReferenceConverter should be the last entry in the predefined
converters table, so that when we look up we don't end up with the wrong
converter for derived types.
* TypeDescriptorTests.cs: Add a test that both GetConverter
overloads return the same converter.
svn path=/trunk/mcs/; revision=108087
Apply patch from Achille Fouilleul (achille.fouilleul at gadz dot org)
* BackgroundWorker.cs: Ensure the async object is set to null before
calling RunWorkerCompleted, as IsBusy is based off the async object.
[Fixes bug #394365]
2008-07-16 Jonathan Pobst <[email protected]>
* BackgroundWorkerTest.cs: Add some asserts for bug #364365.
svn path=/trunk/mcs/; revision=108053
Apply patches from Jordan Callicoat (MonkeeSage at gmail dot com)
* AsyncCompleteEventArgs.cs: RaiseExceptionIfNecessary should throw
TargetInvocationException if there was an exception, and IOE if
the operation was cancelled.
* BackgroundWorker.cs: Do not call RunWorkerCompleted from CancelAsync,
setting cancel_pending to true is enough.
* RunWorkerCompletedEventArgs.cs: Raise exceptions when user tries
to access the Result if there are any exceptions.
[Fixes bugs #328830 and 373153]
2008-07-16 Jonathan Pobst <[email protected]>
* BackgroundWorkerTest.cs: Add tests for bugs 328830 and 373153.
svn path=/trunk/mcs/; revision=108039
IList. Added test for String indexer.
* PropertyDescriptorCollectionTests.cs: Improved test for Find and
merged CultureInsensitiveFindTest. Improved test for Find with null
name/key. Added test for String indexer.
* EventDescriptorCollection.cs: Fixed Empty to return read-only
collection. In a read-only collection, throw NotSupportedException
instead of InvalidOperationException when attempting to modify the
collection. Fixed find to use ordinal comparison on 2.0 profile.
Fixed IList's IsFixedSize and IsReadOnly.
* PropertyDescriptorCollection.cs (Find): Use key as argument name
when name is null. Silly compatiblity fix.
svn path=/trunk/mcs/; revision=106736
* 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
* 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