Commit Graph
148 Commits
Author SHA1 Message Date
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
Gert Driesen 0c548363d0 * TypeDescriptor.cs: in .NET 2.0, GetComponentName returns null if object is
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
2005-06-04 19:34:20 +00:00
Ben Maurer dd19011aa6 locking fixes
svn path=/trunk/mcs/; revision=45088
2005-05-26 23:18:18 +00:00
Gonzalo Paniagua Javier 4ddbe4b253 2005-02-05 Gonzalo Paniagua Javier <[email protected]>
* 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
2005-02-05 18:06:52 +00:00
Joerg Rosenkranz 5d9a0a2776 2005-01-20 Joerg Rosenkranz ([email protected])
* TypeDescriptorTests.cs: Added tests for bug #71444



svn path=/trunk/mcs/; revision=39399
2005-01-24 07:57:32 +00:00
Jonathan Pryor 438c295e1a * TypeDescriptorTests.cs: Add another test in GetComponentName() to check
the component name returned for a component without a Site.

svn path=/trunk/mcs/; revision=39202
2005-01-19 21:26:43 +00:00
Nick Drochak 755b9d2bdf 2005-01-08 Nick Drochak <[email protected]>
* TypeDescriptorTests.cs:
	* System.ComponentModel/ChangeLog
	* System.ComponentModel/TypeDescriptorTests.cs
	* System.Net.Sockets/ChangeLog
	* System.Net.Sockets/SocketTest.cs
	* System.Text.RegularExpressions/ChangeLog
	* System.Text.RegularExpressions/RegexTest.cs
	* System/ChangeLog
	* System/UriTest.cs
	* System/UriTest2.cs: Fix/Ignore tests for MS.NET

svn path=/trunk/mcs/; revision=38493
2005-01-07 15:42:31 +00:00
Lluis Sanchez 62438a9912 * TypeDescriptorTests.cs: Added new tests for TypeDescriptor.
* System_test.dll.sources: Added
		System.ComponentModel/TypeDescriptorTests.cs.

svn path=/trunk/mcs/; revision=25617
2004-04-16 18:24:43 +00:00
Sebastien Pouliot efb6ae735b 2004-03-17 Ivan Hamilton <[email protected]>
* LicenseManagerTests.cs: New. Unit tests.

svn path=/trunk/mcs/; revision=24218
2004-03-17 12:35:53 +00:00
Martin Willemoes Hansen 2320c1fddc * Removed: Old AllTests.cs files
* NUnit20ified the tests.

svn path=/trunk/mcs/; revision=12666
2003-03-18 21:45:41 +00:00
Gonzalo Paniagua Javier 6a3b9fa131 changelog
svn path=/trunk/mcs/; revision=8678
2002-10-30 15:13:51 +00:00
Gonzalo Paniagua Javier d9bfb88359 2002-10-30 Gonzalo Paniagua Javier <[email protected]>
* AllTests.cs:
	* ChangeLog:
	* EventHandlerListTests.cs: new test.

svn path=/trunk/mcs/; revision=8677
2002-10-30 15:10:17 +00:00