Commit Graph
111 Commits
Author SHA1 Message Date
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
Chris Toshok 825e4be3c1 In Test/System.ComponentModel:
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
2006-12-06 22:12:28 +00:00
Marek Habersack e2cd975c9e Implementation of the DisplayNameAttribute class and associated tests. The previous had TraceEventCache.cs mentioned in the System.dll.sources file - it shouldn't have been there. Sorry about the problem it caused.
svn path=/trunk/mcs/; revision=67740
2006-11-12 21:21:50 +00:00
Robert Jordan 4d638c8046 Fix the build (reverted r67723 due to a missing file).
svn path=/trunk/mcs/; revision=67726
2006-11-11 23:35:24 +00:00
Marek Habersack 767df60d24 Added implementation of System.ComponentModel.DisplayNameAttribute and associated tests
svn path=/trunk/mcs/; revision=67723
2006-11-11 20:26:18 +00:00
Chris Toshok 4c3ccfb842 add tests inspired by bug #76647
svn path=/trunk/mcs/; revision=67633
2006-11-09 19:38:49 +00:00
Chris Toshok ecac6c0b20 add some PropertyDescriptor tests for IsReadOnly
svn path=/trunk/mcs/; revision=67573
2006-11-09 05:02:42 +00:00
Sebastien Pouliot ea3fbc1654 2006-11-08 Sebastien Pouliot <[email protected]>
* CollectionConverterTest.cs: More test cases.


svn path=/trunk/mcs/; revision=67564
2006-11-09 03:05:50 +00:00
Gert Driesen 6bf6e7f264 * System_test.dll.sources: Added ArrayConverterTests.cs.
* 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
2006-11-08 19:53:28 +00:00
Sebastien Pouliot 95dc4b45a2 2006-11-07 Sebastien Pouliot <[email protected]>
* CollectionConverterTest.cs: New. Some unit tests done while tracking
	an issue.


svn path=/trunk/mcs/; revision=67463
2006-11-07 16:20:17 +00:00
Gonzalo Paniagua Javier 405ec62f26 2006-09-11 Gonzalo Paniagua Javier <[email protected]>
* 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
2006-09-11 22:57:06 +00:00
Gonzalo Paniagua Javier 35a49d5a64 2006-09-11 Gonzalo Paniagua Javier <[email protected]>
* 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
2006-09-11 16:45:06 +00:00
Atsushi Eno e37046098b 2006-05-22 Atsushi Enomoto <[email protected]>
* TypeDescriptor.cs : GetProperties() does not return indexers.

	* TypeDescriptorTest.cs : added GetPropertiesIgnoreIndexers().


svn path=/trunk/mcs/; revision=60947
2006-05-22 15:23:02 +00:00
Atsushi Eno 68694ee948 2006-04-25 Atsushi Enomoto <[email protected]>
* 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
2006-04-25 16:43:57 +00:00
Gert Driesen e0c45eb6ce * TypeDescriptorTests.cs: Added test for bug #76686.
svn path=/trunk/mcs/; revision=57821
2006-03-11 09:07:00 +00:00
Andrew Skiba 470cecb9dc performance improvement for TypeDescriptor.GetAttributes,GetProperties and GetEvents. See the standalone test for the use case.
svn path=/trunk/mcs/; revision=57197
2006-02-23 11:40:25 +00:00
Gonzalo Paniagua Javier d5d12aa737 2006-01-31 Gonzalo Paniagua Javier <[email protected]>
* ContainerTest.cs: new test.


svn path=/trunk/mcs/; revision=56342
2006-01-31 17:06:36 +00:00
Raja R Harinath 2733998d50 * DateTimeConverterTests.cs (ConvertTo_MaxValue): Disable tests
that require CurrentCulture _not_ to be InvariantCulture.
(ConvertToString_MaxValue): Likewise.

svn path=/trunk/mcs/; revision=50998
2005-09-29 15:40:09 +00:00
Gert Driesen 126eee6f86 * TypeConverterTests.cs: Added tests for TypeConverter.
* PropertyDescriptorCollection.cs: Added tests for PropertyDescriptorCollection.
* TypeDescriptor.cs: Remove usage of removed internal
PropertyDescriptorCollection ctor. Return read-only collection.
* PropertyDescriptorCollection.cs: Removed internal ctor taking
ArrayList. Add ctor for making read-only collection. Added
read-only checks. Implemented IsReadOnly and IsFixedSize. Empty now
returns read-only collection to match MS.NET.
* System_test.dll.sources: Added TypeConverterTest.cs and
PropertyDescriptorCollection.cs.

svn path=/trunk/mcs/; revision=50242
2005-09-19 16:52:34 +00:00
Gert Driesen cdfb192c91 * DateTimeConverterTests.cs: Added tests for DateTimeConverter.
* 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
2005-08-28 07:36:26 +00:00
Gert Driesen f2289de628 * ByteConverterTests.cs: Added ConvertToString and ConvertFromString
tests with culture that has overriden GetFormat for NumberFormatInfo.
* DecimalConverterTests.cs: same.
* DoubleConverterTests.cs: same.
* Int16ConverterTests.cs: same.
* Int32ConverterTests.cs: same.
* Int64ConverterTests.cs: same.
* SByteConverterTests.cs: same.
* SingleConverterTests.cs: same.
* UInt16ConverterTests.cs: same.
* UInt32ConverterTests.cs: same.
* UInt64ConverterTests.cs: same.
* BaseNumberConverter.cs: Use CultureInfo.GetFormat to obtain
NumberFormatInfo to match MS.NET. Added ConvertToString abstract
method for conversion to string.
* ByteConverter.cs: Implemented ConvertToString.
* DecimalConverter.cs: Implemented ConvertToString.
* DoubleConverter.cs: Implemented ConvertToString.
* Int16Converter.cs: Implemented ConvertToString.
* Int32Converter.cs: Implemented ConvertToString.
* Int64Converter.cs: Implemented ConvertToString.
* SByteConverter.cs: Implemented ConvertToString.
* SingleConverter.cs: Implemented ConvertToString.
* UInt16Converter.cs: Implemented ConvertToString.
* UInt32Converter.cs: Implemented ConvertToString.
* UInt64Converter.cs: Implemented ConvertToString.

svn path=/trunk/mcs/; revision=48904
2005-08-26 20:08:40 +00:00
Gert Driesen 113f0ec149 * ToolboxItemAttributeTests.cs: Fixed typo in eol-style property.
* ByteConverterTests.cs: Added tests for hex string and min/max
conversions.
* Int16ConverterTests.cs: Added tests for hex string and min/max
conversions.
* Int32ConverterTests.cs: Added tests for hex string and min/max
conversions.
* DecimalConverterTests.cs: Added tests for DecimalConverter.
* DoubleConverterTests.cs: Added tests for DoubleConverter.
* Int64ConverterTests.cs: Added tests for Int64Converter.
* SByteConverterTests.cs: Added tests for SByteConverter.
* SingleConverterTests.cs: Added tests for SingleConverter.
* UInt16ConverterTests.cs: Added tests for UInt16Converter.
* UInt32ConverterTests.cs: Added tests for UInt32Converter.
* UInt64ConverterTests.cs: Added tests for UInt64Converter.


svn path=/trunk/mcs/; revision=48549
2005-08-19 11:41:09 +00:00
Gert Driesen 228d54377e * ByteConverterTests.cs: Added tests for ByteConverter.
* 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
2005-08-16 13:12:48 +00:00
Gert Driesen cf11a15f9b * ToolboxItemAttributeTests.cs: Added tests for ToolboxItemAttribute.
* 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
2005-08-16 12:54:01 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00